search for: property_pag

Displaying 4 results from an estimated 4 matches for "property_pag".

Did you mean: property_lg
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. </td> 7. <% en...
2006 Jul 27
1
Passing a parameter in a method via URL
Hi there, I want to pass a parameter with a method invoked from an .rthml file. How can I do that? The method is called list_by(category) and is located in an ordinary .rhtml page. The category parameter changes depending on the context. But it can never be invoked because URLs can''t display brackets. Do you get what I mean? Can anybody help? -- Posted via
2006 Mar 09
0
Re: Displaying related tables in forms.. probably an easy qu
...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) %&...
2006 Jan 02
6
Paginate with joins messing with id
Hi all, Best wishes for the new year! :'') I''m very new to Ruby and Rails, and I ran into a problem with the "paginate" function. When I use the following method to get a number of forum topics based on a category name passed via the URI: @topic_pages, @topics = paginate :topics, :joins => "INNER JOIN categories ON