Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## error
- NoMethodError (You have a nil object when you didn't expect it!
- You might have expected an instance of ActiveRecord::Base.
- The error occurred while evaluating nil.[]):
- app/controllers/tabs_controller.rb:76:in `create'
- ## line 76
- @file = @tab.uploads.build(params[:upload]) unless params[:upload][:uploaded_data].blank?
Add Comment
Please, Sign In to add comment