Easy way to capsize Rails squadron views?

I know how to create a new generator in Rails . However, I just want to change my mind a bit. Is there an easy way to do this? I think I could go into the directory on my operating system where Rails resides and modifies these files (I assume it's simple). But then these changes will apply to all Rails projects, not just what I like right now. And it will be destroyed when I update Rails (often).

Using Rails 3.2.13, but happy to upgrade to 4.0 beta if that helps.

+5
source share
1 answer

You can find the answer in this RailsCast , pay attention, in particular, to the section "Configuring Templates". You create files in your Rails root directory lib/, so it will not apply to all applications, only your current ones, and it will not be independent of the versions of Rails.

+2
source

All Articles