Forum: Ruby on Rails Several partials from one action record

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1c5f2a594abbf65d6a7a21a3f8a97e9b?d=identicon&s=25 bono (Guest)
on 2007-02-25 19:32
I have partial _show.rhtml like this:

<% for column in DynText.content_columns %>
  <%= in_place_editor_field :content, column.name, {}, :rows => 1 %>
<% end %>

and .rhtml file:

...some html...
<%= render :partial => 'show', :locals => { :id => 1 } %>
...some html...
<%= render :partial => 'show', :locals => { :id => 2 } %>
...some html...

and .rb file
...
@content = DynText.find(:all)
...

How should I edit these to get partial render correct data by id?
This topic is locked and can not be replied to.