Rails plugin with a different version of rails

91 views Asked by At

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 :(

1

There are 1 answers

2
Pan Thomakos On BEST ANSWER

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 ...