simple_form_fancy_uploads icon indicating copy to clipboard operation
simple_form_fancy_uploads copied to clipboard

undefined method `prototype_image?' for #<Project:0x00007fd2f8432f10>

Open dwiehoff opened this issue 4 years ago • 0 comments

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=

dwiehoff avatar Jan 06 '21 23:01 dwiehoff