Schienen simple_form zwei Modelle

Ich bin seit simple_form für eine rails-Anwendung, und während der Konvertierung einige meiner Formulare, stieß ich auf eine, die hat zwei Modelle, die es arbeitet, sozusagen ein eingebettetes Formular. Ist das möglich mit 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' %>

Dank

InformationsquelleAutor Chip | 2011-05-14
Schreibe einen Kommentar