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

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 9:46 AM

    This should work:

    class ApplicationController < ActionController::Base
      before_filter :set_default_host
    
      protected
        def set_default_host
          default_ur...
  • Andrew White
    • State changed from needs-more-info to invalid
    by Andrew White at 6:26 AM

    Actually it shouldn't be hitting the url_for in ApplicationController - it doesn't in a test app. In fact the only way I can get it to go to the url_for in Appl...

5883 Design of Schema.define() can cause missed migrations was updated in Ruby on Rails
  • Andrew White
    • Importance changed from to Low
    by Andrew White at 9:37 AM

    I don't think listing all the applied migrations in schema.rb is a good idea - you'll still get a merge conflict on the Schema.define line. The task db:migrate:...

5881 RJS Documentation was updated in Ruby on Rails
5581 Session cookie not sent with activerecord or memcache store in Rails 2.3.9 was updated in Ruby on Rails
  • Andrew White
    Andrew White commented at 7:32 AM

    Sorry about that - wrong ticket number in commit message

Thursday, October 28 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 4:55 PM

    It should be first going through url_helper.rb:

    http://github.com/rails/rails/blob/master/actionpack/lib/action_vie...

    Can you provide a backtrace?

  • Andrew White
    • State changed from new to needs-more-info
    • Assigned user changed from Ryan Bigg to Andrew White
    • Importance changed from to Low
    by Andrew White at 8:09 AM

    Nader, can you confirm in what context you are using url_for? In a view the :only_path option is passed to url_for so the fact that url_for is calling polymorph...

Wednesday, October 27 2010
5870 Priority for routes does not override resource statements was updated in Ruby on Rails
  • Andrew White
    • State changed from new to invalid
    • Importance changed from to Low
    by Andrew White at 3:27 AM

    The generated url helpers from the resources call overwrite the one from the previous route. It's just like redefining a method. If you use url_for it will matc...

Tuesday, October 26 2010
5869 params in functional tests not sent to controller encoded was updated in Ruby on Rails
  • Andrew White
    • Assigned user set to Andrew White
    • Importance changed from to Low
    by Andrew White at 8:50 PM