Displaying 9 results from an estimated 9 matches for "t1_r5".
Did you mean:
t1_r0
2006 Jun 25
2
how to write the codes in view?(newbie question)
...ks = Genre.find(:all,:include => :link)
end
Below is the mysql log.
SELECT genres.`id` AS t0_r0, genres.`genre_n
ame` AS t0_r1, genres.`genre_order` AS t0_r2, links.`id` AS t1_r0,
links.`genre_
id` AS t1_r1, links.`name` AS t1_r2, links.`symbol` AS t1_r3,
links.`url` AS t1_
r4, links.`order` AS t1_r5, links.`display` AS t1_r6, links.`etc` AS
t1_r7 FROM
genres LEFT OUTER JOIN links ON links.genre_id = genres.id
But I don''t know the way to show them in the view.
How do I have to write the code in the view(list.rhtml)
to get the contents(name,symbol,url etc) of the joined table?
list....
2006 Jan 09
3
Include with two references of one model of the same table
..." AS t2_r9, matches."division_id" AS t1_r10, matches."hometeam_id" AS t1_r4, teams_seasons."coach_id" AS t0_r3, matches."division_id" AS t2_r10, matches."id" AS t2_r0, matches."played" AS t1_r11, matches."matchtime_start" AS t1_r5, teams_seasons."manager_id" AS t0_r4, matches."played" AS t2_r11, matches."matchtime_stop" AS t1_r6, teams_seasons."league_id" AS t0_r5 FROM teams_seasons LEFT OUTER JOIN matches ON matches.hometeam_id = teams_seasons.id LEFT OUTER JOIN matches ON matches.a...
2007 May 22
2
find :all :include broken on Oracle 10
...s.keywords AS t0_r5,
publications.cvsdir AS t0_r6, publications.publishername AS t0_r7,
publications.publisherorg AS t0_r8, publications.release_state_id AS
t0_r9, doc_types.id AS t1_r0, doc_types.code AS t1_r1, doc_types.en AS
t1_r2, doc_types.es AS t1_r3, doc_types.sv AS t1_r4, doc_types.descr
AS t1_r5, release_states.id AS t2_r0, release_states.code AS t2_r1,
release_states.name AS t2_r2, release_states.descr AS t2_r3 FROM
publications LEFT OUTER JOIN doc_types ON doc_types.publication_id =
publications.id LEFT OUTER JOIN release_states ON
release_states.publication_id = publications.id
Obvio...
2006 May 23
5
AR Caching and Reflection
When I do this:
term = Term.find(1, :include => :definition)
term.definition.term
Two SQL queries are fired, why?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 17
1
acts_as_tree and :include
...gb_entries.`created_at` AS t0_r5, gb_entries.`parent_id` AS t0_r6,
childrens_gb_entries.`id` AS t1_r0, childrens_gb_entries.`name` AS
t1_r1, childrens_gb_entries.`email` AS t1_r2,
childrens_gb_entries.`homepage` AS t1_r3,
childrens_gb_entries.`message` AS t1_r4,
childrens_gb_entries.`created_at` AS t1_r5,
childrens_gb_entries.`parent_id` AS t1_r6 FROM gb_entries LEFT OUTER
JOIN gb_entries childrens_gb_entries ON childrens_gb_entries.parent_id
= gb_entries.id WHERE gb_entries.id IN (''30'', ''29'', ''28'', ''27'', ''26'...
2006 Feb 19
2
Another "escaping" problem
...ager load:
SELECT events.`id` AS t1_r0, events.`user_id` AS t1_r1, addresses.`id`
AS t0_r0, events.`name` AS t1_r2, addresses.`name` AS t0_r1,
events.`meet_at` AS t1_r3, addresses.`phone_number` AS t0_r2,
events.`created_at` AS t1_r4, addresses.`phone_service` AS t0_r3,
events.`location_id` AS t1_r5, addresses.`user_id` AS t0_r4 FROM
addresses [" LEFT OUTER JOIN addresses_events ON
addresses_events.address_id = addresses.id LEFT OUTER JOIN events ON
addresses_events.event_id = events.id "]WHERE (addresses.`phone_number`
= ''6129641828'' )
Notice the bit in the m...
2006 Apr 10
1
random | in join statement with more than one :include
...t0_r27, grants.`created_by` AS t0_r28, grants.`updated_by` AS
t0_r29, sponsor_agencies.`id` AS t1_r0, sponsor_agencies.`name` AS
t1_r1, sponso r_agencies.`address` AS t1_r2,
sponsor_agencies.`phone` AS t1_r3, sponsor_agenci
es.`contact_name` AS t1_r4, sponsor_agencies.`created_at` AS t1_r5,
sponsor_agen cies.`created_on` AS t1_r6,
sponsor_agencies.`updated_at` AS t1_r7, sponsor_agen
cies.`updated_on` AS t1_r8, sponsor_agencies.`lock_version` AS t1_r9,
sponsor_ag encies.`created_by` AS t1_r10,
sponsor_agencies.`updated_by` AS t1_r11, mechanis ms.`id` AS...
2013 Oct 08
4
'puppet storeconfigs export' killed
...t` AS t0_r6, `hosts`.`updated_at` AS t0_r7,
`hosts`.`source_file_id` AS t0_r8, `hosts`.`created_at` AS t0_r9,
`resources`.`id` AS t1_r0, `resources`.`title` AS t1
_r1, `resources`.`restype` AS t1_r2, `resources`.`host_id` AS t1_r3,
`resources`.`source_file_id` AS t1_r4, `resources`.`exported` AS t1_r5,
`resources`.`line` AS t1_r6, `resources
`.`updated_at` AS t1_r7, `resources`.`created_at` AS t1_r8,
`param_values`.`id` AS t2_r0, `param_values`.`value` AS t2_r1,
`param_values`.`param_name_id` AS t2_r2, `param_values`.`
line` AS t2_r3, `param_values`.`resource_id` AS t2_r4,
`param_values`.`up...
2006 Jul 04
13
NewBie question
Hi,
I m very new to Ruby.
I bought a book "Ruby on Rails" and I think I understand some concepts.
My question is :
Is there a way to not use "Cookies" or "Sessions Variables" to keep some
information about the user.
I ask this question because I would like to prevent some cases where the
user browser won''t accept cookies.
I m from Asp 3.0, and I