Tbl uses a script for starting new rails projects.
After you run ‘rails new example -d=postgresql’, create a new file in the script folder of the new project. (don’t worry about an extension for the file)
Add the contents to the new file
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
|gem install bundler|
|bundle install –binstubs bin|
|createuser -s -e replacemewithusername|
Be sure to replace ‘replacemewithusername’ with the actually username. This is the same username in your config/database.yml file
After the file is created changed the permissions on the file, to make it executable. This is done by running:
$ chmod +x script/filename
One thought on “Script for starting new rails projects”
I’ve been meaning to ask you if you might post an article about the things you don’t like about Rails. At Blosme, we work with a number of technologies, but we love Rails but it frustrates us quite a bit. We just never really see anything from others who are frustrated with things that either happen or don’t happen with Rails.