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.

Andrés Mejía's latest activity

Thursday, November 25 2010
6057 'Address' does not singularize properly was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 4:41 PM

    From ticket 2399:

    "Rails has a longstanding policy of not taking further inflector patches."

    May I ask what is the reason behind this?

Tuesday, November 23 2010
6045 Rails-3.0.3 gives Completed 406 Not Acceptable was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 11:29 PM

    I cannot reproduce this. Can you try to isolate the issue to a minimal application that exhibits the problem? Thanks!

Monday, November 22 2010
6013 Move 1.9 string interpolation syntax backport from I18n to ActiveSupport was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 5:49 PM

    +1 for this. I get those I18n warnings all around when running Rails tests. Would love to see them gone.

6028 Routing breakage in 3.0.3 was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 2:32 PM

    All right. I think there's nothing to fix here. Can you change this ticket's state to "invalid"?

  • Andrés Mejía
    Andrés Mejía commented at 12:27 PM

    By the way, it's not working properly for me on Rails 3.0.1, either:

    On routes.rb :

      resources :issues do
        collection do
          get 'page/:page' => 'issues#...
  • Andrés Mejía
    Andrés Mejía commented at 11:47 AM

    I think this is the intended behavior, and not a bug:

    When you say

    get 'page/:page' => 'issues#index', :page => %r{\d+}
    
    you are saying that a page parameter i...
6031 [PATCH] shortcut to unscoped named_scope was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 11:32 AM

    -1

    It's not worth killing readability just to avoid typing 8 extra characters.

Sunday, November 21 2010
6023 Unable to find by subclasses of String in activerecord was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 3:17 PM

    +1 on this. How was this handled on Rails 3.0.1? Why didn't it fail before?

    For a quick fix, you can try:

     Keyword.find_by_text(new_text.to_s)
    
6025 render :json don't escape htmlentities. was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 3:04 PM

    -1 on this.

    Why would you directly access an action that renders JSON in the first place?

    I don't really see how could this be used for an XSS attack. Mind expl...

Wednesday, November 17 2010
5985 Remove the claim of 1.9.2 compatibility from guides. was updated in Ruby on Rails
  • Andrés Mejía
    Andrés Mejía commented at 11:06 AM

    Couldn't reproduce this on Rails 3.0.1 with Ruby 1.9.2-p0:

    $ rails c
    Loading development environment (Rails 3.0.1)
    ruby-1.9.2-p0 > require 'builder'
     => nil 
    r...