RailsCasts Pro episodes are now free!

Learn more or hide this

Adam's Profile

GitHub User: adsteel

Site: www.coelevation.com

Comments by Adam

Avatar

Anyone have any tips for adding a foreign key? Say in Ryan's example, Factory had many Products, and one wanted to upload Products from a CSV that did not contain a foreign key to the Factory each Product belonged to. Thanks!

Avatar

Hammer, you need an equal sign after '<%', before 'submit_tag', like this:

'<%= submit tag "Import" %>'

Good luck!