Displaying 3 results from an estimated 3 matches for "product_type_id".
2005 Dec 15
3
Rails: Select and html forms
...ing code in the view:
5 <select id="product_product_type" name="product[product_type]">
6 <%=
7 types = ProductType.find(:all, :order => "product_type")
8 options_from_collection_for_select( types, :id, :product_type,
selected=@product_type_id)
9 %>
10 </select
Which renders the following:
<label for="product_product_type">Product type</label><br/>
<select id="product_product_type" name="product[product_type]">
<option value="2"></option>
...
&...
2006 May 19
2
Problem with joins and overlapping field names
Hi,
I have the following code:
@conversation_pages,
@conversations = paginate(:conversations,
:per_page => 20,
:joins => ''LEFT JOIN messages on
messages.conversation_id = conversations.id ''+
''LEFT JOIN email_addresses on
2006 Apr 19
2
I need help in ActiveRecord..
I have this Product.find(:all, :include => [:brand, :category, :type],
:group =>
"description"), but it dont group by description why?
Bruno
--
Posted via http://www.ruby-forum.com/.