search for: m000351

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

Did you mean: 1000351
2006 Feb 07
1
displaying foreign keys help request
Hi .. (I seem to be having some problems getting my posts to the list for some reason. Sorry if you see this as a repost). A conceptual question this time. I have the relation: member (m)---(1) member_type The schema looks something like this (simplified + PGSQL) create table member_types ( id serial, info varchar( 20 ) not null, primary key( id
2006 Jan 10
1
select lists - initial and empty elements
Hi all, A couple quick select helper questions. First, how do I set the initial selection value? Second, how do I create an "empty" element in the list? Or should I just unshift nil onto the list? I looked over the docs, but didn''t find anything specifically about this. If this is covered, just point me to the appropriate link and I''ll be on my way. :) Thanks,
2006 Sep 25
1
ActiveRecord instead of direct sql execution
Hi all, I have 2 tables and a standard one-to-many association. How do I substitute the following sql with ActiveRecord calls so that it uses just one sql statement: update geo_entities set terminal_id = 3 where id = 10 or id = 23 or id = 87; Thank you! Regards, Yuri Leikind --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2005 Dec 19
3
Is there a list of html_options for the FormOptionsHelper?
I''m looking for a way to select a default value from a select box, like this: select("user", "role_id", Role.find_all.collect {|r| [ r.name, r.id ] }, { :default_value => ''5'' } (of course, there is no ":default_value") If the form is being used on a ''create'' page, it should display a default in the select box. If