RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: Tarikus
@media = @survey.build_media (if has_one association)
<%= fields_for :media do |f| %>
<%= f.file_field :content %> #@media.content is where the file goes
<% end %>
Thanks buddy!! :)
Have you solved the problem?
Hi, I followed the tutorial step by step and I get:
can't convert nil into String error when I click the sign in with facebook link.
I forked the source code and It does not work either.
I get the same error.
How can I solve this?
Is there a way to put ENV variables in a file?
How does the ENV hash work?
I have the same problem, did you solve it?