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.

There was a problem

You must be a member of this account.

Duncan Mac-Vicar's latest activity

Thursday, July 29 2010
5244 mysql2 gem not supported in rake tasks was created in Ruby on Rails
  • Duncan Mac-Vicar
    Duncan Mac-Vicar created the ticket at 11:42 PM

    If you do rake db:setup with mysql2 and there is an error (access denied) you will get an error "Unknown constant Mysql", because the rake tasks rescues from th...

Thursday, May 06 2010
4544 rails3 : ActiveRecord sqlite3 : lost column type when using views was updated in Ruby on Rails
  • Duncan Mac-Vicar
    Duncan Mac-Vicar commented at 10:13 PM

    Also, quoting this mail in sqlite-users:

    RoR should be using the sqlite3_column_type() API to determine the type of the values returned from a query. Other AP...

  • Duncan Mac-Vicar
    Duncan Mac-Vicar commented at 10:13 PM

    Also, quoting this mail in sqlite-users:

    RoR should be using the sqlite3_column_type() API to determine the type of the values returned from a query. Other AP...

  • Duncan Mac-Vicar
    Duncan Mac-Vicar commented at 9:41 PM

    The problem seems to come from the fact that the adapter uses PRAGMA table_info(table_name) to get the type information, and that does not return the types for ...

  • Duncan Mac-Vicar
    Duncan Mac-Vicar created the ticket at 9:23 PM

    Originally I asked in Stackoverflow until I realized MySQL adapter does work correctly.

    Rails 3.0.0.beta3 with ruby 1.9.2head (happens in 2.3.5 / ruby 1.8.7 to...

Thursday, May 07 2009
2608 ActiveResource support for singleton resources? was updated in Ruby on Rails
  • Duncan Mac-Vicar
    Duncan Mac-Vicar commented at 11:07 PM

    One workaround that worked for me was to redefine element_path and collection_path to not include the id. THis solution was proposed as a workaround in some mai...

Tuesday, May 05 2009
2608 ActiveResource support for singleton resources? was created in Ruby on Rails
  • Duncan Mac-Vicar
    Duncan Mac-Vicar created the ticket at 9:50 AM

    ActiveResource find(:one) method returns nil when no :from option is passed.

    This contradicts the documentation which presents :one and :from as two separate an...