search for: property_control

Displaying 3 results from an estimated 3 matches for "property_control".

2006 Mar 08
2
Displaying related tables in forms.. probably an easy question!
Hey All, I have two tables.. One belongs to another. Why can''t I reference table1.table2.attribute? Specifically, using scaffolding: property.rb - has_one :PropertyType property_type.rb - has_many :Properties property_controller - def list @property_pages, @properties = paginate :properties, :per_page => 10 end list.html: 1. <% for property in @properties %> 2. <tr> 3. <% for column in Property.content_columns %> 4. <td> 5. <%=h property.send(column.name) %> 6....
2006 Aug 04
3
<img onclick> vs link_to_remote()
...border="0",alt="Close Selection", title="Close", onclick="<%= remote_function(:url => { :controller => ''property'', :action => ''closeSelection'', :id => @property }) %>" > then it''s ok, in my property_controller.rn def closeSelection render :update do |page| page.replace_html ''selections'', "" end end will reset the content of the ''selections'' div to empty... fine but if I try to use <%= link_to_remote (image_tag("icon_editit...
2006 Mar 09
0
Re: Displaying related tables in forms.. probably an easy qu
...rigan wrote: > Hey All, > > I have two tables.. One belongs to another. Why can''t I reference > table1.table2.attribute? > > Specifically, using scaffolding: > property.rb - > has_one :PropertyType > > property_type.rb - > has_many :Properties > > property_controller - > def list > @property_pages, @properties = paginate :properties, :per_page => 10 > end > > list.html: > 1. <% for property in @properties %> > 2. <tr> > 3. <% for column in Property.content_columns %> > 4. <td> > 5....