我开始为rails应用程序使用simple_form,并且在转换一些表单时,我遇到了一个有两个模型的工作,它们是嵌入式表单。这可能与simple_form?rails simple_form两个模型
<% simple_form_for :topic, :url => forum_topics_path do |t| %>
<%= t.input :name, :label => 'Topic' %></p>
<p>First Post:<br/></p>
Title: <%= text_field :post, :title %> <--- this is where i start having problems
Body: <%= text_area :post, :body %>
<%= t.submit 'Save' %>
感谢