[Rails] Re: syntax error, unexpected keyword_ensure, expecting $end
Nope, parenthesis are OK, but I have managed to make it right, the
correct syntax is this
<code>
<%= link_to vehicle_path(@vehicle), {:method => :delete, :confirm =>
"Are you sure?", :title => "Borrar #{@vehicle.plate}"} do %>
<%= image_tag "/assets/icons_big/delete.png" %>
<span>Delete</span>
<% end %>
</code>
without the parenthesis at all and the brackets surrounding html_options
or it doesn´t work.
thanks for all.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home