我開始爲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' %>
感謝