How do you generate views/controllers/tests for a brand new Rails 3.x application which has all the relevant model classes under app/models.
How do you generate views/controllers/tests for a brand new Rails 3.x application which has
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the console type
For instance
this generates items_controller.rb in app/controllers, new.html.erb, edit.html.erb and other actions in app/views and test templates in test/