B
B
bismoney2015-10-22 15:21:36
Ruby on Rails
bismoney, 2015-10-22 15:21:36

Ruby and Rail paperclip how to start?

Hi all.
Registered in the gem
gem 'paperclip'
I also tried to manually
gem install paperclip
and made bound
In the model, I specified
has_attached_file : photo
and built it into the form for adding a post.
I'm getting an error on the site.

<b>undefined method `has_attached_file' for #<Class:0x00000006f95258></b>

how to win?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bismoney, 2015-10-22
@bismoney

Andrey Nikiforov @eoffsock Did you
restart the server after adding the gem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question