Skip to content

TypeError in Avatars#new #1

Description

@i8ramin

Getting an error when I click on the Upload avatar link. Gonna try to debug it a bit, but wanted to bring it up just incase somebody already has a solution.

Ruby 1.9.3p327
Rails 3.2.12

TypeError in Avatars#new

Showing /Users/ramin/tmp/carrierwave_direct_example/app/views/avatars/new.html.erb where line #2 raised:

can't convert nil into String
Extracted source (around line #2):

1: <%= direct_upload_form_for @uploader do |f| %>
2:   <%= f.file_field :avatar %>
3:   <%= f.submit "Upload Directly!" %>
4: <% end %>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions