I would do it with nested routes and map.resource. You would end up with a rout that looked like this:
/plans/:plan_id/compare/:id If you are comparing more than one at a time then I would do what was suggested before and pass an array of IDs as a GET request. On Nov 8, 8:31 am, Aljaz Fajmut <[email protected]> wrote: > Hello, > > I'm trying to implement Rails functionality which would allow to compare > Model records (in my case different plans). > > I'm unsure what would be the proper approach towards this with Rails, is > there any tutorial for doing something like available on internet/book? > > Which would be better: to pass the comparing model ids to the compare > controller by post or by url? > > Any tips are highly appreciated. > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

