Created
May 20, 2011 22:43
-
-
Save BitPuffin/983956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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