Topic: How create HAML form correctly?

Can't show form. Here is my code:

- form_for Question.new do |f|
  %p
    = f.label :user_id, :caption => "user_id: "
    = f.text_field :user_id, :value => "1"
  %p
    = f.label :question, :caption => "question: "
    = f.text_area :question, :value => "How I can ?"
  %p
    = f.submit "Create"

Last edited by johnoggy (2013-06-02 04:40:02)