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.

James B. Byrne's latest activity

Monday, January 31 2011
6208 Rails-3.0.3 - I18n.t does not treat 'number' as a string was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 6:09 PM

    Am I to understand then that if one uses BDD and develops a view requiring use of the string 'number' without previously providing a translation for it then the...

Wednesday, December 22 2010
6208 Rails-3.0.3 - I18n.t does not treat 'number' as a string was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 4:35 PM

    Important condition:

    This error only occurs if there is no entry in the translation file. If 'number' is not a key in config/locales/default/en.yml then the err...

  • James B. Byrne
    James B. Byrne created the ticket at 4:27 PM

    In ActionView html.erb templates

    I18n.t( 'number' ).strip raises

    undefined method strip' for #<Hash:0x2b946fb1ddc8>

    As does:

    I18n.t( "number" ).strip

    And:

    I18n....

Friday, December 17 2010
6045 Rails-3.0.3 gives Completed 406 Not Acceptable was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 10:34 PM

    Reordering the resources did resolve the problem.

Tuesday, November 30 2010
6045 Rails-3.0.3 gives Completed 406 Not Acceptable was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 9:57 PM

    I generated a new rails-3.0.3 project and added the suspect routes only. The problem is instantly reproducible:

    $ rails c
    Loading development environment (Rail...
6083 render does not take symbol as template argument was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 4:06 PM

    Then is there a case for the render method to return a specific ArgumentError message in the event it receives a symbol rather than a string as the value for th...

Monday, November 29 2010
6083 render does not take symbol as template argument was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 8:30 PM

    I think that that appraisal rather misses the point. The issue is one of 'least surprise'. Is there a strong technical reason why symbols should not be allowed ...

  • James B. Byrne
    James B. Byrne created the ticket at 5:03 PM

    render :template => 'index' Works

    render :template => :index does not and gives this error:

      private method `sub!' called for :index:Symbol (NoMethodError)
    

    S...

Friday, November 26 2010
6045 Rails-3.0.3 gives Completed 406 Not Acceptable was updated in Ruby on Rails
  • James B. Byrne
    James B. Byrne commented at 4:37 PM

    I should point out that this behaviour is exhibited after I did the following simplifications:

    1. The entire route.rb file looks like this:
    Proforma::Applicatio...
  • James B. Byrne
    James B. Byrne commented at 4:19 PM

    I have done a little more investigation and I do not think that I can get things much simpler than this:

    Routes as given above.

    3.0.3 behaviour ( same as 3.0.2 ...