RailsCasts Pro episodes are now free!

Learn more or hide this

Tarik Benabdallah's Profile

GitHub User: Tarikus

Comments by Tarik Benabdallah

Avatar

controller:

ruby
@media = @survey.build_media (if has_one association)

View:

erb
<%= fields_for :media do |f| %>
  <%= f.file_field :content %>   #@media.content is where the file goes
<% end %>
Avatar

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?

Avatar

Is there a way to put ENV variables in a file?
How does the ENV hash work?

Avatar

I have the same problem, did you solve it?