Displaying 1 result from an estimated 1 matches for "partial_object_id".
2007 Oct 10
4
dymanic changes for model name
Hello,
I have a question. But first take a look on this code:
<p>
<b>Attachments</b>
<%= view_attachments_field(Garage.find(@partial_object_id), {}) %>
</p>
This code loading images for model Garage in my view by id. This is a
partial. And i used it in several places but for different models :City,
Shop, House....
I just don''t want to write code by Ctrl+Ins,Shift+Ins and do this
dynamically. I want to set model name i...