Topic: Paperclip Tutorial Help

I am new to Ruby and I am having a hard time with out of date tutorials and was hoping for some help.

I found this tutorial and I was hoping someone could help me translate it to Ruby 3.
http://railscasts.com/episodes/134-paperclip

Here are the steps I am having trouble with

script/plugin install git://github.com/thoughtbot/paperclip.git
script/generate paperclip product photo
rake db:migrate

Here is what I tried instead as the first two lines did not work
sudo gem install paperclip
rails generate paperclip Post photo

After the second line I get the error could not find generator paperclip, after that I tried a 'bundle install' followed by the second line again only to get the same message. I have created a db name post btw.

Could someone please help me,
Thanks

Re: Paperclip Tutorial Help

Try bundle install.

Re: Paperclip Tutorial Help

after that I tried a 'bundle install' followed by the second line again only to get the same message. I have created a db name post btw.

Could someone please help me,
Thanks

Re: Paperclip Tutorial Help

HA, sorry about that. Did you add gem "paperclip", "~> 2.3" to your gemfile before running bundle install?

Re: Paperclip Tutorial Help

Just download the plugin from Git (there is an option download) and put the file downloaded in vendor/plugin directory. It should work.

Re: Paperclip Tutorial Help

roberth wrote:

HA, sorry about that. Did you add gem "paperclip", "~> 2.3" to your gemfile before running bundle install?

No I didn't, and that fixed it. Thanks