default shred name rails resources routing
i wish emanate lane rails concentration along lines of
/panda/blog
/tiger/blog
/dog/blog
where panda, tiger, dog permalinks (for an animal class)
the normal proceed doing this
map.resources :animals |animal|
animal.resource :blog
end
would emanate routes along lines of
/animals/panda/blog
/animals/tiger/blog
/animals/dog/blog
but i wish initial segment, always same.
i know i authority routing, nonetheless i wish know controlling rails resources, carrying animals blogs requirement me.
Comments
Post a Comment