我正在使用角度的rails应用程序。我在主表单中有一个表单。角形式唯一的工作是从输入中获取文本并放在另一个类中。我的问题是主要表单没有提交。我知道我不能在表格中嵌套表格,但这是我的棱角分明形式的唯一方式。
enter code here
<%= form_for Experience.new, :url => experience_new_path do |f| %>
<%= f.label :Company, :class => 'control-label' %>
<%= f.text_field :name,:class => 'form-control' %>
<br />
<%= f.label "Job Title", :class => 'control-label' %>
<%= f.text_field :description,:class => 'form-control' %>
<br />
<%= f.label "Location", :class => 'control-label' %>
<%= f.text_field :description,:class => 'form-control' %>
</div>
</div>
<div class="row" ng-controller="tagForm">
<fieldset >
<form ng-submit="addEntry()">
<div class="col-xs-12 col-sm-12 col-md-10 ">
<%= f.text_field :description,:placeholder => 'What are your area of expertise',:'ng-model'=> "newEntry.name", :class => 'form-control border' %>
</div>
<div class="col-xs-12 col-md-2 center form-button" >
<input type="submit" value="Add" class="btn btn-orange btn-add" >
</div>
<div class="col-md-8 col-sm-offset-2" id="up" ><br/>
<span class="label label-primary" ng-repeat="entry in entries"> {{entry.name}}</span>
</div>
</form>
</fieldset>
<button type="submit" class="btn btn-orange btn-lg " value="submit">Add Next Experience</button>
<% end %>