code_junkie

undefined method rails question

Nov 12th, 2011
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <%form_for @question do |f| %>
  2. <%=f.text_field :title %>
  3. <%end%>
  4.  
  5. map.resources :questions
  6.  
  7. map.ask_question '/questions/ask', :controller => 'questions', :action => 'create'
  8.  
  9. >ruby script/generate scaffold question question:string answer:string votes:integer
  10. exists app/models/
  11. exists app/controllers/
  12. exists app/helpers/
  13. create app/views/questions
  14. exists app/views/layouts/
  15. exists test/functional/
  16. exists test/unit/
  17. exists public/stylesheets/
  18. create app/views/questions/index.html.erb
  19. create app/views/questions/show.html.erb
  20. create app/views/questions/new.html.erb
  21. create app/views/questions/edit.html.erb
  22. create app/views/layouts/questions.html.erb
  23. create public/stylesheets/scaffold.css
  24. create app/controllers/questions_controller.rb
  25. create test/functional/questions_controller_test.rb
  26. create app/helpers/questions_helper.rb
  27. route map.resources :questions
  28. dependency model
  29. exists app/models/
  30. exists test/unit/
  31. exists test/fixtures/
  32. create app/models/question.rb
  33. create test/unit/question_test.rb
  34. create test/fixtures/questions.yml
  35. create db/migrate
  36. create db/migrate/20081201150131_create_questions.rb
Add Comment
Please, Sign In to add comment