search for: voteabl

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

Did you mean: voteable
2009 Nov 09
3
How can I improve a Ruby on Rails code that hast a lot of SQL as strings?
...items` for MySQL but not for other databases. - In the same vein, is there a way to get a field name the same way Rail''s ORM would put it in a SQL query? - Maybe there''s a way to get both, the table name and the field name in one operation. I''m imaging something like Item.voteable_id.for_query => "`items`.`voteable`". - How do I escape code to avoid SQL injection when not in conditions? I''m using the user_id variable directly in a query and although it''s impossible for a user to put anything in it, I''d rather escape it properly. In a...