Displaying 2 results from an estimated 2 matches for "owner1".
Did you mean:
owner
2006 Jun 21
0
text_field_with_auto_complete broken in firefox?
...ude_tag :defaults %>
</head>
<body>
<%= text_field_with_auto_complete :owner, :company_name , {:size =>
15}, {:skip_style => true} %>
</body>
</html>
def auto_complete_for_owner_company_name
@owners = []
@owners << "owner1"
@owners << "owner2"
render :partial => ''owners''
end
def testpage
render :layout=>false
end
_owners.rhtml:
<ul class="owners">
<% for owner in @owners do -%>
<li class="autocomplete_item"...
2008 Aug 01
2
Is this a many to many relationship??
So i have one table of data, each data object has two owners from the
users table.
so it''s
data table
id owner1_id owner2_id
---------------------
5 1 2
10 1 2
owner table
id name
---------------
1 bob
2 cornholio
so when i pull records from the data table for owner1_id how would i
access the name field of owner id 2?
--
Posted via http://www.ruby-forum.com/.
--~--~----...