Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separator throwing an error #59

Closed
jthurston opened this issue Jun 17, 2014 · 4 comments
Closed

Separator throwing an error #59

jthurston opened this issue Jun 17, 2014 · 4 comments

Comments

@jthurston
Copy link

Bread crumbs are working fine with the following:
<%= render_breadcrumbs%>

But adding the separator throws an error
<%= render_breadcrumbs :separator => ' / ' %>

Error:
NoMethodError in Customers#index

Showing /Users/thurstonjm/.rvm/gems/ruby-1.9.3-p392/gems/twitter-bootstrap-rails-2.2.8/app/views/twitter-bootstrap/_breadcrumbs.html.erb where line #3 raised:

undefined method `html_safe' for {:separator=>"/"}:Hash
Extracted source (around line #3):

1: <% if @breadcrumbs.present? %>
2:


    3: <% separator = divider.html_safe %>
    4: <% @breadcrumbs[0..-2].each do |crumb| %>
    5:

  • 6: <%= link_to crumb[:name], crumb[:url], crumb[:options] %>

@weppos
Copy link
Owner

weppos commented Jun 17, 2014

The error is in another gem.

/Users/thurstonjm/.rvm/gems/ruby-1.9.3-p392/gems/twitter-bootstrap-rails-2.2.8/app/views/twitter-bootstrap/_breadcrumbs.html.erb where line #3 raised:

@weppos weppos closed this as completed Jun 17, 2014
@jthurston
Copy link
Author

You are correct, sorry should have looked at that closer

@weppos
Copy link
Owner

weppos commented Jun 17, 2014

No problem. :)

On Tue, Jun 17, 2014 at 3:18 PM, jthurston notifications@github.com wrote:

You are correct, sorry should have looked at that closer

Reply to this email directly or view it on GitHub
#59 (comment)
.

Simone Carletti
Passionate programmer and dive instructor

http://simonecarletti.com/
Twitter: @weppos https://twitter.com/weppos

@ngelx
Copy link

ngelx commented Oct 19, 2014

@jthurston, Have you been able to solve this? I'm having the same issue. Although seems not related to this gem, this issue report is the only I could found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants