2015-05-25 44 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

很好的接收... :) –

相关问题