Displaying 2 results from an estimated 2 matches for "bugsheet".
2006 Mar 07
1
Find By SQL + multiple tables
Hello all. I am trying to get the following SQL to work in Ruby on rails
and Oracle.
SELECT bugsheet.*, bugcomplete.bc_time FROM bugsheet, bugcomplete WHERE
bugsheet.bs_id = bugcomplete.bc_id AND bugsheet.bs_patchrel like
''5.1.12-B4%'' ORDER BY bs_cdate DESC, bc_time DESC
If I type that into an SQL program it works fine, if I try and use the
following in RoR:
Bugsheet.find_by...
2006 Jan 19
0
Incorrect number of arguments.
Hello all. I have the following code in a partial. It''s purpose is to
create a dropdown box with a bunch of values in it for display purposes
only.
(@bugsheet is an instance variable being used by the partial)
<%= select("bugclientlink", "bug_id",
Bugclientlink.listclients(@bugsheet.id))
Given the fact that Bugclientlink class contains:
def self.listclients( reference )
result = Bugclientlink.find_by_sql["select client...