If the URL is clicked, a form is presented by the "new" method to
create a new review for a site. Right now I only know to generate
each URL with new_review_path, which creates the same URL for all
rows, leading to a black form to create a new review.
I want this form to be prefilled with the value of the corresponding
site_id in the site_id column. That means somehow each URL to create
a new review has to be different from one another. How can I do this?
Thanks
Vincent
Read up on nested resources. That's how I would most likely implement
something like what you describe.
http://guides.rubyonrails.org/routing.html#nested-routes
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-ta...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks.
> Posted viahttp://www.ruby-forum.com/.