I recently upgraded a rails app to 2.0.2 and I’m having an issue when
I build URLs to edit specific items. It seems I’m getting %2F instead
of the slash and this causes the controller to not recognize the
action. Here’s some code from an RHTML file:
Please select the specific resource
Region: <%= @region %>
<% for resource in @all_resources %>
<% if @region == resource.region.Name %>
Not quite sure what the method nav_link is, some helper you defined
yourself? Makes it difficult without the source of that method to see
how your URL is constructed. Try to see if <%= link_to
“#{resource.Name}”, 'admin/skills/#{resource.id}" %> works first.
You can’t do it like that. If call call nav_link(“foo”, “bar”, “edit/
1234”) then it will think that the action name is “edit/1234”, and
escape that like a single entity. You will want to pass ‘:id => 1234’
to link_to_unless_current.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.