Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Alex MacCaw's latest activity

Monday, May 05 2008
23 validates_uniqueness_of doesn't escape attributes was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 5:53 PM

    I don't think uploading a file to a ticket makes it go back into the feed. I've added the changes koz suggested and re-uploaded the patch (in Git's format).

Saturday, April 19 2008
23 validates_uniqueness_of doesn't escape attributes was updated in Ruby on Rails
  • Alex MacCaw
    Alex MacCaw commented at 10:38 PM

    I didn't know you could have spaces in column names - but if this is a problem then by all means just escape the column name.

  • Alex MacCaw
    Alex MacCaw commented at 4:48 PM

    That's right. I thought about escaping the column name, however I decided I'd follow the convention which seems to escape the table name, rather than the colum...

  • Alex MacCaw
    Alex MacCaw commented at 9:41 AM

    Moved over from trac:

    http://dev.rubyonrails.org/ticke...

    It has 6 +1 already.

  • Alex MacCaw
    Alex MacCaw created the ticket at 9:39 AM

    Let's say I have a table with a column called 'key' (which is a SQL keyword). If I try and validate_uniqueness_of :key, the SQL query fails, since the attribut...