This is a very basic guide for those who are interested in learning ruby on rails. I assume you have already installed ruby on rails and have basic knowledge. Many beginners using ruby on rails will not use any IDE, rather they will use command line if installed on MAC or linux. So here I will list seven important commands which you really need to know inside out and are used throughout the development of a project. I will use Demo as project name and users (model) as a table in the database.
The above command will create a rails app called demo with all the good things you need.
ruby script/generate scaffold User name:string email:string active:boolean
The above command will create a sacffold called User with CRDU functions.
The above command will create the table called users in the database.
ruby script/generate controller <name>
The above command is used to generate a new controller.
ruby script/generate model <name>
The above command will generate a new model as well as a migration file.
ruby script/generate migration <name>
The above command can be used to generate a new migration file.
And finally the above command is executed to start the WEBRICK server.
There are many more commands that are used when working with ruby on rails, but the seven listed above are basic and common that everyone needs to know!
nice quick guide for new starters!