Adding your section into routes.rb seems to give me this error on
attempting to run the server:

unexpected tASSOC, expecting kEND

On May 10, 7:58 pm, Ar Chron <li...@ruby-forum.com> wrote:
> Assuming you're using REST (far better, IMO), although your map.connect
> would make me think otherwise...
>
> map.resources :tutorials,
>   :controller => "categories"
>   :path_prefix => "/category/:category_id",
>   :name_prefix => "category_"
>
> should yield /categories/category.id/tutorials/tutorial.id
> and category_tutorial as a named route, with a link something like this:
>
> <%= link_to 'Next lesson',
> category_tutorial_path(:category_id => @category.id,
> :id => @NextLesson) %>
>
> I think, although your @NextLesson seems bizarre.
>
> If that doesn't work, have you done a  "rake routes >routes.lst"
> then looked at your routes.lst to see what routing you actually have?
> Rails will match the first route it finds given the inputs in the
> specified order.
>
> http://api.rubyonrails.org/classes/ActionController/Resources.html
>
> --
> Posted viahttp://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-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to