Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%form_for @question do |f| %>
- <%=f.text_field :title %>
- <%end%>
- map.resources :questions
- map.ask_question '/questions/ask', :controller => 'questions', :action => 'create'
- >ruby script/generate scaffold question question:string answer:string votes:integer
- exists app/models/
- exists app/controllers/
- exists app/helpers/
- create app/views/questions
- exists app/views/layouts/
- exists test/functional/
- exists test/unit/
- exists public/stylesheets/
- create app/views/questions/index.html.erb
- create app/views/questions/show.html.erb
- create app/views/questions/new.html.erb
- create app/views/questions/edit.html.erb
- create app/views/layouts/questions.html.erb
- create public/stylesheets/scaffold.css
- create app/controllers/questions_controller.rb
- create test/functional/questions_controller_test.rb
- create app/helpers/questions_helper.rb
- route map.resources :questions
- dependency model
- exists app/models/
- exists test/unit/
- exists test/fixtures/
- create app/models/question.rb
- create test/unit/question_test.rb
- create test/fixtures/questions.yml
- create db/migrate
- create db/migrate/20081201150131_create_questions.rb
Add Comment
Please, Sign In to add comment