I''m trying to use nested resources to generate links to the responses
that exist in this category.
Instead of:
http://localhost:3000/categories/4/responses/4/edit
It generates this:
http://localhost:3000/categories/4%2F5/responses/4/edit
See that extra URL Encoded slash 5 (%2F5=/5)? Why is that showing up?
Here''s my code:
<ul id="ul_questions">
<% unless @category.responses.empty? %>
<% @category.responses.each do |response| %>
<li><%= link_to response.name,
edit_category_response_path([@category,response]) %></li>
<% end %>
<% end %>
</ul>
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---