RailsCasts Pro episodes are now free!

Learn more or hide this

Manuel's Profile

GitHub User: mhutter

Site: http://mhutter.net

Comments by Manuel

Avatar

Why not just use a route like this?

ruby
get ':commentable_type/:id/comments', as: :comments
get ':commentable_type/:id/comments/new', as: :new_comment