Displaying 2 results from an estimated 2 matches for "select_xxx".
Did you mean:
select_lex
2006 Mar 07
0
Overriding date helpers in a logical way
...xt <input> for year, a similar text <input> for both hour
and minute, a <select> for AM/PM and, the coup de''gr?ce: two more text
<input>s for a second time that my app will calculate date 2 our of
based off of date 1.
Anyway, I was thinking of simply overriding the select_xxx() methods
in DateHelper, but they''re all geared around <select> tags and I''m not
sure how much of the class hierarchy I''ll have to dig up to get a
similar method but with <input>. Also, (and correct me if I''m wrong,)
the select_xxx methods don'...
2008 May 30
9
find_by_sql without a model? how to do this?
Hi,
I''d like to do a "find_by_sql" without a model (e.g. <model
name>.find_by_sql("...")) as the results I get back are a once off special,
and I''m happy to handle them as an array. How do I do this?
"ActiveRecord::Base.find_by_sql(...)" does not seem to work?
Background - At the moment I''m doing within a model <model_name>,