You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the detailed overview. The error is occurring because your database doesn't have the correct columns. In order for attached to work you need: 'file_identifier' (string), 'file_extension' (string) and 'file_size' (integer). Substitute the name of the file within the application for 'file' (example: 'avatar_identifier', 'avatar_extension' and 'avatar_size'). In your migration you can use the 'attachment' type to generate all three columns at once (see read me). If this doesn't fix your problem feel free to reopen the issue!
Hi,
I get
NoMethodError (undefined method 'file_identifier' for #<Document:0x27117a8>)
when I try to save a form with attachement.new.haml
document.rb (model)
schema
POST REQUEST
documents_controller
Thank you.
The text was updated successfully, but these errors were encountered: