You do not need to call any special functions to add slashes or
escape things for the database in rails as long as you use the place
holder syntax. So if you just get in the habit of always using the ?
placeholders like you were shown with the snippet below, you will not
have to worry about escaping anything before inserting or querying
def self.home_categories (portal_id)
find(:all, :conditions => [ “portal_id=?”, portal_id ] )
This is the important syntax:
:conditions => [ “portal_id=?”, portal_id ]
PS. what was meant when someone mentioned that you highjacked a
thread in the list was that if you hit reply to an even replace the
subject line. the in-reply-to headers that the mailing list uses to
put together threads will lump your post in with the previous thread
you replied to. So in the future when you want to start a new thread,
please make sure to create a fresh new email in your email client and
send it to the address: [email protected] and you will
avoid the thread highjacking.
PPS. Welcome to the rails community. You will like it here.
On Jan 25, 2006, at 6:50 PM, softwareengineer 99 wrote:
Thanks for your assistance.
Rails mailing list
Yakima Herald-Republic Newspaper