search for: doctype_id

Displaying 1 result from an estimated 1 matches for "doctype_id".

Did you mean: doc_type_id
2006 Aug 13
3
ruby and mysql syntax? tried single quotes, double, none, ...
...do i use passed in arguments and convert those to something sql can understand? do the aliases have to be double qouted? single qouted? i think i tried all but no avail...thanks! def get_count(doctype, towne) @profiles = Profile.count_by_sql("SELECT COUNT(*) from Profiles where Profiles.doctype_id = 1 and town_id = towne") end -- Posted via http://www.ruby-forum.com/.