Using 'match' in the routes.rb file - how do you get to admin/something? (Rails 3)

5 views
Skip to first unread message

daze

unread,
Dec 19, 2010, 11:46:23 PM12/19/10
to Ruby on Rails: Talk
I get the match syntax for rails 3 in the routes.rb file:

match 'somewhere' => 'articles#index'

This would let me use somewhere_path, which is cool.
...

But how do I define a path called 'xyz' to something like admin/
articles/index? Something like...

match 'xyz' => 'admin/articles#index'

But that doesn't work! Thoughts?
Reply all
Reply to author
Forward
0 new messages