-
Notifications
You must be signed in to change notification settings - Fork 899
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
Couldn't find paper trail generator #459
Comments
Did you run What happens when you run |
I've ran bundle install, and it's not in a group on the Gemfile. When I run bundle show, it does list the gem |
Is it listed in the generator pool when you run just |
It's not listed On Wed, Jan 7, 2015 at 3:15 PM, Ben Atkins notifications@github.com wrote:
|
Hmmmm, I just tried with a fresh app of Rails 4.1.8 and it seemed to work for me so I'm not sure what the issue could be... |
Strange. I've used Papertrail on other projects and this is the first time On Wed, Jan 7, 2015 at 3:19 PM, Ben Atkins notifications@github.com wrote:
|
Are generators from other gems showing up in that list? |
Yes, other gem generators are showing up On Jan 8, 2015 7:48 AM, "Ben Atkins" notifications@github.com wrote:
|
Were you ever able to sort out what was going on here? Perhaps try upgrading Rails? |
No I've been unable to figure it out..I decided to table it for now to do On Wed, Jan 14, 2015 at 4:51 PM, Ben Atkins notifications@github.com
|
You can always just copy the migration contents into a blank migration file if you really can't get it to work. Sent from my iPhone
|
This is happening for me too :( |
If someone can provide a failing dummy app I can debug it more easily. I was unable to reproduce this, which makes it difficult to determine a cause. |
For me it worked when sourcing the gem from Github master. It didn't work when using the rubygems version suggested in the readme. |
@chrise86 - What version were you sourcing prior to sourcing from Github master? |
is this a dup of #494? |
I was experiencing the same issue in an app, after I switched to another version or ruby (using rvm) it magically appeared. One curious thing was that, on the same environment I was having the problems, I was able to create a new rails app and the generator appeared. This is the app in question in which I was experiencing the problems is this: I guess that it may be related with any "base" gem or something like that. These are the steps I followed:
Thanks! |
@merlos - Thanks for the detailed report. Just wanted to clarify though, what do you think is the culprit here then? Ruby 2.1.x? |
I was unable to reproduce this. I tried: mkdir pt_issue_459 && cd pt_issue_459
echo "2.1.1" > .ruby_version
cat > Gemfile <<EOF
source 'https://rubygems.org'
gem "rails", "4.1.6"
gem "paper_trail", git: "git@github.com:airblade/paper_trail.git"
EOF
bundle
bundle exec rails new . --skip-gemfile --skip-spring
bundle exec rails g | grep paper_trail # paper_trail:install Just guessing, but this may be a case of a poorly configured @pkuruppu @merlos can you try the above and let us know what happens? |
@jaredbeck It worked for me (I had to use As I told in my previous comment, even before I solved the issue by setting a different ruby version I was able to create a new app with ruby 2.1.1 and the paper_trail generator appeared. It seemed to be a weird issue that affected only in the app I was working on. BTW I tried with/without @batter My guess based on ignorance: some uncommon incompatibility with a particular version of a gem that was in my app. |
Ok I'm tentatively ready to close this, just because I really don't have the faintest idea what could/would cause this and I don't know that there's anything we can do to "fix" it. @jaredbeck - good point that, when in doubt, you should always run the commands with |
+1 to close it. |
Just a note to this, I was having this problem on Ruby 2.1.6, changed to Ruby 2.0.0 and all works fine now. |
Coming back to this I've been able to fix it for myself:
After running 'gem list paper_trail' I saw it returned 2 versions.
Then I went to my Gemfile and set the version I wanted to use:
And it worked! ('bundle exec rails generator paper_trail:install')
Hope it helps anyone. |
had the same issue after switching ruby version. tried uninstalling and re-installing paper_trail gem a couple of times and finally got it to work. |
Just to prove there are a million + 1 ways to mess things up, I experienced this same error. Then realized I'd added |
In my case an error was nice enough to offer explanation how to fix itself - comment out: source 'https://rubygems.org' in Gemfile. Never had this error before. Thank you for the gem! |
Just to point out that I had the same issue using ruby-2.3.1. After I switched to ruby-2.2.4 everything worked as expected! :) |
For anyone wandering here from search engines, looks like this is an issue specifically with RVM only. On my linux dev machine, this worked as expected, however on my RVM using Ruby 2.3.1 I faced same issue as OP. You may just want to copy the migration file and commit it. |
This is happening to me with ruby 2.5 and rails 5.1.4. I get:
I am not using rvm. |
I have this issue as well in ruby 2.5.1 and rails 5.2 |
Had same issue with Ruby 2.5.0 and Rails 5.2. |
This comment has been minimized.
This comment has been minimized.
Just had this exact problem, I solved it when I realized that I picked the wrong gem papertrail instead of paper_trail. |
Hey guys -
Using Rails 4.1, Ruby 2.1.4
I've entered gem 'paper_trail', '~> 3.0.6' into my Gemfile
I've bundled successfully, but when I bundle exec rails generate paper_trail:install I get:
Could not find generator paper_trail:install.
Seems like a very minute problem - am I missing something here?
The text was updated successfully, but these errors were encountered: