This post, however, is not about application templates (you can find plenty of info online already), but about how to apply them to existing templates.
In my Rails app, I created a file called automate.rb. To apply it to my app, I enter the following nifty rake command into the command console:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake rails:template LOCATION=automate.rb |
This runs the contents of automate.rb on the existing rails application. Perfect.
No comments:
Post a Comment