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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---