我有这个表格
- semantic_form_for :qualification, :url => { :controller => 'qualifications', :action => 'add_students' } do |form|
- form.inputs do
= form.input :name, :label => "Course Title"
= form.input :course_type, :collection => Qualification::COURSE_TYPES
= form.input :graduate_date, :label => "Course Start Date", :start_year => pdc_start_year, :end_year => 1972, :discard_day => true
= form.input :location, :label => "Course Location"
= form.semantic_fields_for :user do |student|
= student.input :first_name
= student.input :last_name
= form.submit 'Add Students'
它在按钮之前创建
1
我看到这个1生成但我想删除它
答案 0 :(得分:1)
在这里猜测你正在使用rails 2?
= form.semantic_fields_for :user do |student|
应该是
- form.semantic_fields_for :user do |student|