Building a new Rails app with the railsbuilder gem

require 'railsbuilder'

rb = RailsBuilder.new
rb.build 
rb.save

The above code will create a new Rails app called site1 and then it will save file site1.cfg containing the following:

#
#   RailsBuilder configuration file
#
app: site1

# resources: posts

Note: This gem is currently under development.

Resources

Tags:
Source:
2122hrs.txt
Published:
09-03-2014 21:22