Copying files from a Rails plugin into the application upon plugin install

Posted by Lou Z. on Stack Overflow See other posts from Stack Overflow or by Lou Z.
Published on 2010-03-23T20:21:30Z Indexed on 2010/03/23 20:23 UTC
Read the original article Hit count: 446

When someone installs this plugin, I would like a file to be copied into the config/initializers directory of the app. I could do this in install.rb by copying a template file that resides somewhere in the plugin. Another option would be to require the user to run a generator after install. I know rspec-rails makes you run a generator after you install it, is that the recommended behavior?

And is there anything wrong with copying files into the application in install.rb?

Thanks!

Lou

© Stack Overflow or respective owner

Related posts about ruby-on-rails-plugins

Related posts about ruby-on-rails