Skip to content

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

Description

@dwiehoff

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=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions