Hi. I have a problem in restful routing. My project is a discussion
forum.
The route is
map.resources :forums do |forum|
forum.resources :topics do |topic|
topic.resources :posts
end
end
Everything in the code I wrote are working good.
An example url for a show action of a forum post would be
http://localhost:3000/forums/3/topics/4/posts/90
Now if i replace 90 by 200, I get the post with id 200 which doesn't
belong to topic id 4.
How can i prevent this?
Thank you
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---