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.

Ola Tuvesson's latest activity

Thursday, March 03 2011
6411 i18n fallback doesn't work for localized views was updated in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson commented at 5:13 PM

    Any thoughts on this, anyone?

Friday, February 18 2011
6411 i18n fallback doesn't work for localized views was updated in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson commented at 10:23 AM

    For example, putting this in an initializer does not give me the German help view:

    module ActionView
    class LookupContex

    module Details
      def locale
        :de
      e...
  • Ola Tuvesson
    Ola Tuvesson commented at 9:22 AM

    Thanks, that makes sense. But I was wondering which method it is I need to override? I've been digging around in the ActionView source, PathResolver and other p...

Thursday, February 17 2011
6411 i18n fallback doesn't work for localized views was updated in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson commented at 12:51 PM

    While waiting for this to be patched, does anyone have any suggestions how I might implement a temporary fix for this? I need to do a new release of my project ...

Sunday, February 13 2011
6411 i18n fallback doesn't work for localized views was updated in Ruby on Rails
  • Ola Tuvesson
    • Assigned user set to Josh Kalderimis
    by Ola Tuvesson at 5:49 PM
  • Ola Tuvesson
    • Assigned user cleared.
    by Ola Tuvesson at 4:11 PM

    Thanks Josh! I need this as I'm working on a site which is available in both France and Canada, as well as in French language in other countries. So I en up wit...

Saturday, February 12 2011
6411 i18n fallback doesn't work for localized views was updated in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson commented at 5:54 AM

    Could someone at least confirm if this is the expected behaviour or not?

Friday, February 11 2011
6411 i18n fallback doesn't work for localized views was created in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson created the ticket at 9:30 AM

    Given that I have set i18n to fall back (e.g. from "fr-Fr" to just "fr"):

    I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)

    And I have created a lo...

Tuesday, June 22 2010
3087 ActiveSupport::JSON.encode is Inconsistent for #as_json and #to_json was updated in Ruby on Rails
  • Ola Tuvesson
    Ola Tuvesson commented at 3:17 AM

    I have the same issue (Rails3b3, Ruby 1.9.2):

    format.json { render :json => @listings.as_json(:only => [:name]) }
    
    => [{id: 1, name: "ACME", type: 3},{id: 2, n...
4547 ActiveSupport #to_json doesn't work with DM was updated in Ruby on Rails
  • Ola Tuvesson
    • Tag changed from rails3 compatibility, activesupport, bugmash, datamapper, patch, rails3 to json to_json, rails3 compatibility, activesupport, bugmash, datamapper, patch, rails3
    by Ola Tuvesson at 2:20 AM

    I am having this same issue with a named scope.

    Given this model:

    class Listing < ActiveRecord::Base
      belongs_to :company
      scope :approved, lambda {
        wher...