simple_form_fancy_uploads
simple_form_fancy_uploads copied to clipboard
undefined method `prototype_image?' for #<Project:0x00007fd2f8432f10>
I'm likely doing something wrong but I can't seem to figure out what.
Using this line of code...
<%= f.input :prototype_image, as: :image_preview, input_html: {preview_version: :thumb} %>
... and adding this line to the model ...
has_one_attached :prototype_image
... I end up with ...
NoMethodError in Projects#new
Showing .../app/views/projects/new.html.erb where line #21 raised:
undefined method `prototype_image?' for #<Project:0x00007fd2f8432f10>
Did you mean? prototype_image
prototype_image=