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.

Andrew White's latest activity

Monday, November 01 2010
5904 'render :template' does not halt filter chain was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 2:21 PM

    The reason I'm suspecting that there's an error in your user session template is that in Rails 2.3 the filter chain is halted when performed? is true. This me...

  • Andrew White
    Andrew White commented at 1:53 PM

    But @order shouldn't be nil inside the view because you're assigning it a new Order instance inside the action. In your new view @order.id would be nil but the ...

  • Andrew White
    Andrew White commented at 1:32 PM

    What's calling id on nil? Is this Rails 2.3 or 3.0?

  • Andrew White
    • Importance changed from to Low
    by Andrew White at 1:05 PM

    Looks like there's an error in your template which is raising an exception before the filter chain can be halted. This would explain why returning false doesn't...

5894 number_to_currency doesn't format negative numbers correctly was updated in Ruby on Rails
  • Andrew White
    • State changed from new to open
    • Milestone set to 3.0.2
    • Assigned user set to Andrew White
    by Andrew White at 6:34 AM

    Don, since the format is looked up in the locale we should do the same for negative_format. That way you only have to override it in one place. Also can you squ...

Saturday, October 30 2010
5892 Using form_for() with :as option in routes breaks was updated in Ruby on Rails
  • Andrew White
    • State changed from new to invalid
    • Assigned user cleared.
    • Importance changed from to Low
    by Andrew White at 8:08 AM

    Using :as in a resources call doesn't change the name of a model throughout your application. You need to use the url helper in form_for:

    <%= form_for(@post, :...
Friday, October 29 2010
5874 url_for <model> generates a <model>_url route instead of <model>_path was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 5:26 PM

    So why not set the :host directly?

      root_url :host => user.host
    
  • Andrew White
    Andrew White commented at 3:55 PM

    Firstly, why do you need to use root_url and not root_path - that way you don't have to worry about the host name. If you do need the full url then if you set t...

5869 params in functional tests not sent to controller encoded was updated in Ruby on Rails
  • Andrew White
    • State changed from new to open
    • Milestone set to 3.0.2
    by Andrew White at 12:48 PM

    You're right that the params in controller functional tests are never at the HTTP level which is why your param is still escaped. If you look at the code which...

5883 Design of Schema.define() can cause missed migrations was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 11:19 AM

    Putting each one on a line will eliminate the merge conflict for the simple case but there's still a possibility of conflict when you have multiple migrations a...