Hey guys, I have a parameter that I am setting with a 'link_to' in the view that looks like this...
<%= link_to 'Register', new_registration_path({:article_id => @article}) %>
...and this correctly takes me to...
http://localhost:3000/registrations/new?article_id=1Now my question is how do I get this into my parameters when I submit this page?
In my registrations controller I can do...
def new
@registration = Registration.new
@article = Article.find params[:article_id]
...
end
...and if inspect @article it is correct...
Now I'm just now sure how to get that :article_id parameter over to the create action.
--
J. Mark Locklear
-Philippians 4:13 gives you the muscle, but YOU have to flex it!
"One machine can do the work of fifty ordinary persons. No machine can do the work of one extraordinary individual."
-- Elbert Hubbard