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 Sharp's latest activity

Tuesday, March 15 2011
6246 Time.zone is broken in most every version of rails including 3.x was updated in Ruby on Rails
  • Alex Sharp
    Alex Sharp commented at 6:33 PM

    The fact that Time.zone uses Thread.current to set the time zone means that Rails will not share this state across threads -- in other words, this is not a glob...

Tuesday, July 20 2010
5143 Problem with validates_presence_of was updated in Ruby on Rails
  • Alex Sharp
    Alex Sharp commented at 5:38 AM

    I don't think it's the responsibility of Rails validations to make sure that the validations you've defined map to actual database fields. Your validations are ...

Monday, July 19 2010
5143 Problem with validates_presence_of was updated in Ruby on Rails
  • Alex Sharp
    Alex Sharp commented at 8:35 AM

    You are validating presence of :empid on line 14:

    validates_presence_of :name,:empid,:email,:password,:username

    I'm not sure I understand the incorrect behavior...

  • Alex Sharp
    Alex Sharp commented at 6:58 AM

    Can you paste in your model or post a link to a gist?

Wednesday, May 05 2010
3917 uninitialized constant Rack::Runtime error was updated in Ruby on Rails
  • Alex Sharp
    Alex Sharp commented at 12:47 AM

    Nevermind my last comment; was an error on my part w/ passenger config. My apologies.

Monday, April 19 2010
3917 uninitialized constant Rack::Runtime error was updated in Ruby on Rails
  • Alex Sharp
    Alex Sharp commented at 11:45 AM

    This problem seems to be occurring again. I am using passenger 2.2.9, rails3 beta3 and bundler 0.9.21 and I am getting the uninitialized constant Rack::Runtime ...