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.

Daniel Schierbeck's latest activity

Sunday, October 19 2008
1115 Path to extend named routes support for an object's to_params() method was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 8:08 PM

    Just an idea: since you've defined your route as /schools/:state/:city/:id/:name, wouldn't it make sense for school_path(obj) to simply inject the return values...

1235 SyntaxError when prefixing delegation to instance variable was created in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck created the ticket at 7:51 PM

    When using :prefix => true in a delegation to an instance or class variable, a SyntaxError is raised:

    compile error\n(__DELEGATION__):1: syntax error, unexpect...
Saturday, October 11 2008
1202 Add attributes writer method for an association. was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 8:16 PM

    The last example should of course have been:

    # Creating associated models. Note that no records will be instantiated for any empty hashes:
    params[:member] # =>...
  • Daniel Schierbeck
    Daniel Schierbeck commented at 8:15 PM

    In the following example:

    # Creating associated models. Note that no records will be instantiated for any empty hashes: params[:member] # => { 'name' => 'joe', ...

984 Make it possible to prefix delegation methods was updated in Ruby on Rails
  • Daniel Schierbeck
    • Title changed from Make it possible to alias delegation methods to Make it possible to prefix delegation methods
    by Daniel Schierbeck at 8:02 PM
Friday, October 03 2008
1080 More options to make delegate more flexible was updated in Ruby on Rails
  • Daniel Schierbeck
    • Tag changed from activesupport, enhancement, patch to activesupport, duplicate, enhancement
    by Daniel Schierbeck at 3:57 PM

    This is now a duplicate of bugs #1127 and #984.

Monday, September 29 2008
1127 :allow_nil option for delegate was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 2:23 PM

    +1: This seems like a good addition to delegate, and I like the simplicity of the implementation.

Thursday, September 25 2008
984 Make it possible to alias delegation methods was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 10:51 AM

    porras: I like your patch, but I think it should be separated from this one, so that comments and disagreements can be better targeted. These are effectively tw...

Tuesday, September 23 2008
1094 Fixed failing Active Model tests was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 9:56 PM

    +1 -- I have the same problem, and your patch fixes it.

1011 Re-add to_xml to ActiveResource was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 9:54 PM

    Hi rbpandey.

    I've had a quick look at your patch, and it seems like you're using tabs instead of two spaces to indent your code. I believe the Rails coding guid...