Hi, Basically I'm just wondering how I can change my link_to's location slightly.
At the moment I have a system with categories and tutorials, and the categories have_many tutorials. The link itself is like this: <%= link_to 'Next lesson', @NextLesson, :controller => 'categories', :id => (@category.id), :action => (@NextLesson) %> I've set the controller etc because my routes.rb file handles the routes like this: map.connect 'categories/:id/tutorials/:action', :controller => 'categories' So from this I figures the link would lead to: /categories/ID/ tutorials/ID however it doesn't, it just leads to: /tutorials/ID Does anyone know how I can change it from /tutorials/TUTID to / categories/CATID/tutorials/TUTID ? Thanks In Advance, Joe -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

