Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dwiehoff opened this issue Jan 6, 2021 · 0 comments
Open

Comments

@dwiehoff
Copy link

dwiehoff commented Jan 6, 2021

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=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant