2015-05-25 48 views
1

下面的代碼是即時通訊有語法錯誤。我試着跟隨一個示例網站,但我想我一定會把東西放在錯誤的地方或didnt添加的東西如果有人能告訴我什麼我可能做錯了,這將是巨大的語法錯誤,意外tSYMBEG,期待keyword_do或'{'或'('

<div align ="center"> 
    <h3>Create Your Project</h3> 

     <%= simple_form_for @createproject, :url => createprojects_url :html => {:class => 'form-horizontal'} do |f| %> 
      <%= f.input :name, :required => true %> 
      <%= f.input :email, :required => true %> 
      <%= f.input :tripdates, :required => true %> 
      <%= f.input :teamname, :required => true %> 
      <%= f.input :teamleader, :required => true %> 
      <%= f.input :tree, as: :check_boxes %> 
      <%= f.input :solar, as: :check_boxes %> 
      <%= f.input :water, as: :check_boxes %> 
      <%= f.input :goats, as: :check_boxes %> 
      <%= f.input :kids, as: :check_boxes %> 
      <%= f.input :house, as: :check_boxes %> 
      <%= f.input :roof, as: :check_boxes %> 
      <%= f.input :latrine, as: :check_boxes %> 
      <%= f.input :build, as: :check_boxes %> 
      <% f.button :submit %> 
     <% end %> 
</div> 

回答

1

simple_form_for @createproject,:。URL => createprojects_url,:HTML => {:類= >'form-horizo​​ntal'}} do | f |

你錯過了一個com馬

+0

很好的接收... :) –

相關問題