Search code examples
ruby-on-railsruby-on-rails-3ruby-on-rails-pluginsruby-on-rails-2

Rails plugin with a different version of rails


I have a rails 3 app, and I want to use a plugin that requires rails_generator, which is no longer available in rails 3. Can I have the plugin run with Rails 2, and my app run with Rails 3?

EDIT: I asked on IRC (#rubyonrails) and the answer is no :(


Solution

  • Rails 3 has a generator. Depending on the rest of the plugin though you might have to make modifications to make it Rails 3 compatible. You can run the generator like this:

    rails generate ...