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.
bono (Guest)
on 2007-02-25 20: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.