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.

Lachlan Sylvester's latest activity

Friday, February 04 2011
6228 Added disable_authenticity_token option to form helper was updated in Ruby on Rails
Thursday, February 11 2010
3933 Application will die with syntax error when trying to define hyphenated resou... was updated in Ruby on Rails
  • Lachlan Sylvester
    Lachlan Sylvester commented at 10:33 PM

    Carl, have you tried resource :my_resource, :as => 'my-resource' ?

    It would be nice is to could configure the router to generate routes with hyphens instead of ...

1429 Add singular version of named_scope that returns first object was updated in Ruby on Rails
  • Lachlan Sylvester
    Lachlan Sylvester commented at 10:43 AM

    Tim, why not define a scope to find cities within a state, then you can use find_by_name to get the city.

    city = Location.cities_in_state(state_name).find_by_n...
Wednesday, February 03 2010
3789 [PATCH] mail_to does not return a html safe string when :encode => "javascript" was updated in Ruby on Rails
  • Lachlan Sylvester
    • Title changed from mail_to does not return a html safe string when :encode => "javascript" to [PATCH] mail_to does not return a html safe string when :encode => "javascript"
    by Lachlan Sylvester at 11:04 AM

    Update patch to use html_safe instead of html_safe!

Tuesday, January 26 2010
3789 mail_to does not return a html safe string when :encode => "javascript" was created in Ruby on Rails
  • Lachlan Sylvester
    Lachlan Sylvester created the ticket at 12:07 PM

    The mail_to helper does not return an html safe string when using :encode => "javascript".

Tuesday, September 22 2009
3246 [PATCH] error_message_on does not display error message when form builder is ... was created in Ruby on Rails
  • Lachlan Sylvester
    Lachlan Sylvester created the ticket at 10:47 AM

    When form_for is invoked using a name and not an object, error_message_on returns an empty string instead of an error message.

        
    form_for(:post) do |f|
       c...
Tuesday, October 14 2008
1201 params didn't have all the data from multiple select list in the view was updated in Ruby on Rails
  • Lachlan Sylvester
    Lachlan Sylvester commented at 11:36 PM

    To have an array in params you need to have the name end in [].

    ie. <select name="aaa[]">