Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created May 20, 2011 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BitPuffin/983956 to your computer and use it in GitHub Desktop.
Save BitPuffin/983956 to your computer and use it in GitHub Desktop.
NoMethodError in Pages#main
Showing /home/papi/Dropbox/Frozen melonbox/App/FilePile/app/views/pages/main.html.erb where line #8 raised:
undefined method `model_name' for NilClass:Class
Extracted source (around line #8):
5: <div id="not_logged_in">
6: <br />
7: <center><p class="lightgrey_none_large">Choose what file you wish to upload:</p></center>
8: <%= form_for @image, :html => {:multipart => true} do |f| %>
9: <%= f.error_messages %>
10: <%= f.label :name%>
11: <%= f.text_field :name%>
mount_uploader :image, ImageUploader
end
I think i have to change what variable the @ directs to but the question is which one?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment