Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

[4.1.1] Paperclip Gerenator - No Method Error #1495

Closed
brunotiago opened this issue Mar 21, 2014 · 37 comments
Closed

[4.1.1] Paperclip Gerenator - No Method Error #1495

brunotiago opened this issue Mar 21, 2014 · 37 comments
Labels

Comments

@brunotiago
Copy link

Hi,

When I run the command "rails g paperclip user photo" I have this message:

/usr/local/Cellar/ruby/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.4/lib/rails/generators/actions/create_migration.rb:13:in migration_file_name': protected methodmigration_file_name' called for #PaperclipGenerator:0x007fb3c6494c20 (NoMethodError)

Can somebody help me ?

@attenzione
Copy link

have the same issue

@marcioj
Copy link

marcioj commented Mar 25, 2014

It seems that this commit fixes the problem. But I guess that isn't avaliable in any release yet. I used gem 'paperclip', github: 'thoughtbot/paperclip' to take that change and the generator worked.

@rodiner
Copy link

rodiner commented Mar 26, 2014

Did you just put that in the command line? I'm getting 'unknown command paperclip' when I paste that in.

@brunotiago
Copy link
Author

No, you have to put the command on Gemfile

@tuliomendes
Copy link

I did like marcioj recommended and it works know. Thanks

@ravjohal
Copy link

THANK YOU very much! Been looking at this for a few days now. what marcioj suggested worked perfectly for me as well. I have ruby 2.1.1 and rails 4.0.4. Not sure if that combination was the issue.

@brunotiago
Copy link
Author

Probably yes because I have the same combination

@henrikbohman
Copy link

Same here, thanks for solution.

@rdesousa
Copy link

rdesousa commented Apr 3, 2014

This worked for me as well. Thank you!

@pmayhem
Copy link

pmayhem commented Apr 17, 2014

Replacing the gem command with gem 'paperclip', github: 'thoughtbot/paperclip' worked!

@michaelvli
Copy link

Thanks for the solution. I was getting the same error and replacing "gem "paperclip", "~> 4.1" with
"gem 'paperclip', github: 'thoughtbot/paperclip'" fixed the issue.

@ghost
Copy link

ghost commented Apr 22, 2014

thanks for the solution - marcioj. This fixed the problem

@ghost
Copy link

ghost commented Apr 29, 2014

Thanks for the solution!

@sikachu sikachu added this to the v4.1.2 milestone May 9, 2014
@anji7686
Copy link

You have to put this " gem 'paperclip', github: 'thoughtbot/paperclip' " command on Gemfile.
Thanks to Marcio Junior and Bruno Araujo...

@uhohphattiyo
Copy link

thanks for the solution!

@ghost
Copy link

ghost commented Jun 5, 2014

This solution worked for me too. Thanks for the help!

@davidfabreguette
Copy link

I guess you guys need to merge the pull request on the gem repo, switching the gem to this repo did the trick !

@plusco
Copy link

plusco commented Jun 13, 2014

Life savor! Thanks!!!!

@malditojavi
Copy link

thanks @marcioj for the glitch!

@alessbell
Copy link

This worked for me! Thanks :)

@jlteran
Copy link

jlteran commented Jun 25, 2014

Worked for me as well. Thank you!

@deanvlue
Copy link

Worked for me too! thank you

@x-itec
Copy link

x-itec commented Jul 5, 2014

Using github directly should not be the solution for this problem. This problem still exists in the default gemfile -(((

@jyurek
Copy link

jyurek commented Jul 8, 2014

Wow, I didn't realize I'd gone so long without a new version. I just pushed out 4.2.0 which includes this change. Thanks, all!

@jyurek jyurek closed this as completed Jul 8, 2014
@sudhirsb2003
Copy link

Thanks! it worked for me

@oliverbern
Copy link

Thanks for this input, solved my problem!

@tomka88
Copy link

tomka88 commented Oct 12, 2014

Thanks a ton @marcioj!

@ghost
Copy link

ghost commented Jan 17, 2015

Thanks that worked @marcioj

@itsyohan
Copy link

itsyohan commented Feb 6, 2015

Many thanks @marcioj!

@joshdance
Copy link

Had same issue, wasn't working, realized I was on old version of the gem.

gem 'paperclip', '~> 4.2' fixed it for me.

@ghost
Copy link

ghost commented Feb 27, 2015

yes, gem 'paperclip', '~> 4.2' fixed it for me.

I wish there's a readme for anticipated errors

@khaderg
Copy link

khaderg commented Jul 26, 2015

I looked up the latest version of paperclip from https://rubygems.org and its 4.3.0 then in my Gemfile i changed it to gem 'paperclip' , '> 4.3' instead of gem 'paperclip' , '>3.0' and then ran bundle install and so i feel Happy i solved the problem,

@lennartsvanberg
Copy link

It worked for me as well. GREAT!

@jacurtis
Copy link

Just chiming in -- this worked for me as well, thank you.

@poidog44
Copy link

Thanks- fixed my issue as well

@ianfriedel
Copy link

That was the perfect fix! Thank you!

@charitydarko
Copy link

gem 'paperclip', '~> 4.2' was the perfect solution to my problem, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests