Created
August 10, 2014 11:56
-
-
Save JamesSkemp/39b701122ae972cd6be9 to your computer and use it in GitHub Desktop.
Commands to get started with a Ruby on Rails site
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
# start where you want the project directory to be created | |
# create a new directory for an application. pass -B to skip adding bundles (requires internet connection) | |
rails new application_name | |
# start in main project directory | |
# must run commands for a project out of bin directory | |
cd bin | |
# start Rails WEBrick server (on port 3000). ctrl + c will kill it | |
rails server | |
# create a new scaffold (object and CRUD) | |
rails generate scaffold objectName name:string cost:float | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment