daze
2010-Dec-20 04:46 UTC
Using ''match'' in the routes.rb file - how do you get to admin/something? (Rails 3)
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? -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.