Fun Rails Commands

Rake about

rake about

tells you about the environment of your application and will detect common installation errors

Controllers and Views

Interesting… for a simple Hello World! App, you only need a controller and a view.  You don’t need a model because no data is involved

rails generate controller also generates a view among other files

rails destroy is the opposite of rails generate.  It deletes all the files and folders that generate created

rails generate controller name action action


When you do rails generate controller, you can also specify actions in the controller that you want to create

| Back