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.

Lawrence Pit's latest activity

Sunday, February 06 2011
5924 mysql collation_connection gets wrong value was updated in Ruby on Rails
  • Lawrence Pit
    • State changed from stale to open
    by Lawrence Pit at 10:46 PM

    [state:open] must be fixed.

Saturday, November 06 2010
5924 mysql collation_connection gets wrong value was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 4:41 AM

    The create_database method of databases.rake creates a mysql database with default charset utf8 and default collation of utf8_unicode_ci. These values can be ov...

Friday, August 20 2010
2793 Bundled Rack tries to call 'split' on a Fixnum was updated in Ruby on Rails
Tuesday, August 03 2010
5282 rails 3: errors to_xml missing type="array" attribute in xml element was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 8:07 AM

    respond_with used to output this on errors:

       <?xml version="1.0" encoding="UTF-8"?>
       <errors type="array">
         <error>Name is invalid</error>
       </errors>...
5253 Rails 3.0 RC cannot capture exception when database goes down! was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 4:05 AM

    The easiest way to go about this is to create your own middleware, and insert it before the ActiveRecord::QueryCache middleware in your application.rb. This mid...

Monday, August 02 2010
5270 respond_with sends back wrong json errors response was created in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit created the ticket at 7:54 AM

    Using Rails 3 RC: when posting/putting data, and a validation fails, an "errors" array is send back. This works if the format is xml, but if the format is json ...

Monday, June 21 2010
4820 Config option to prevent i18n.reload! on each request was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 1:47 PM

    Brilliant! Thanks mate, like it a lot !

Friday, June 11 2010
4820 Config option to prevent i18n.reload! on each request was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 1:23 AM

    In development mode I do want to reload the classes on each request, just not all the i18n stuff, so delegating to cache_caches is not what I want.

    I think > 90...

Thursday, June 10 2010
4820 Config option to prevent i18n.reload! on each request was updated in Ruby on Rails
  • Lawrence Pit
    Lawrence Pit commented at 2:09 PM

    Btw, in rails 3 I18n.reload! is called twice on initialization in railtie.rb, namely in "i18n.initialize" and in the after_initialize. Not sure if any of the tw...

  • Lawrence Pit
    Lawrence Pit created the ticket at 2:03 PM

    In development mode on each request I18n.reload! is called. If you use a custom backend that e.g. loads all translations from a database this will significantly...