Different URL's using the same action
what i need, is routing for
resources :posts
but considering every post object has different category (category is a
column in the database, not referenced object!), categories are kept in
Page::CATEGORIES. bottom line, i need e.g.
'www.example.com/posts/admin_posts' route into post/index action, but with
parameter 'admin_posts' so i can use it in the scope. i hope i made myself
clear:) I DON'T want any more actions, and definitely dont want to define
every route separately, they all should come from Page::CATEGORIES. Any
idea how to do it?
No comments:
Post a Comment