-
Notifications
You must be signed in to change notification settings - Fork 16
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
next_migration_number #11
Comments
That also worked for me! Thanks! |
.rvm/gems/ruby-1.9.2-head/gems/wysihat-engine-0.1.13/lib/generators/wysihat_generator.rb |
That fixed the generator for me as well! Thanks! |
Fixed here too :) |
I'm getting a similar error: /Users/Alan/.rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.1/lib/rails/generators/migration.rb:50:in I've tried editing .rvm/gems/ruby-1.8.7-p302/gems/railties-3.0.1/lib/rails/generators/migration with the fix (changes happen on line #29) and it doesn't seem to make a difference. Can I change the wysihat_generator.rb to fix it? I'm sure I'm doing something terribly wrong. |
+1 to alantocheri |
It seems, that commenting "raise NotImplementedError" in next_migration_number method solves issue. Having it commented, all worked! |
Although the error was coming from ruby-1.8.7-p302, I ended doing what stanislaw suggested in the /ruby-1.8.7-p302@rails3 directory. It must be a RVM thing. That seemed to 'work'. (thanks Stanislaw) The issue now is that it created the migration file without a timestamp and rake seems to miss it. I just copied/pasted into a new migration - but wondering if there's a way to fix this problem and the generate issue for rails 3? |
Running "rails g wysihat" in rails 3 after installation gives me a NotImplementedError exception in the next_migration_number method. This method is defined under Rails::Generators::Migration::ClassMethods in the rails source, so changing it to be a class method in wysihat fixed it for me:
The text was updated successfully, but these errors were encountered: