Rails - Undefined method `stringify_keys' -
i'm trying create block of ruby code when user clicks on button. i'm getting error "undefined method `stringify_keys' "/projects/11/steps/4":string". code works when rid of , end. how add together link_to?
<%= link_to 'back', project_step_path(@project, @project.steps.count-1), :class => "btn btn-small" %> <% end %>
if you're using block form of link_to
can't have text content (the block text content). you'd need this:
<%= link_to project_step_path(@project, @project.steps.count-1), :class => "btn btn-small" %> <% end %>
typically used when want have images or other tags contents of link. it's purely display purposes. block not give javascript-like functionality, create sure additional display behavior you're looking here :)
ruby-on-rails
No comments:
Post a Comment