Hola Lista!

Paso a explicar mi problemática.

Estoy internacionalizando una aplicación Rails3, utilizando ruby-1.9.2-rc
con RVM

Lo que quiero hacer es lo siguiente

MyApp::Application.routes.draw do
  match I18n.t("routes.something") => "users#something", :as => :something
  match I18n.t("routes.anything")  => "users#anything", :as => :anything

  resources :users,
            :path => I18n.t("routes.users.path"),
            :path_names => { :new => I18n.t("routes.users.path_names.new"),
                             :edit => I18n.t("routes.users.path_names.edit") }

  root :to => "users#index"end

Y tener en config/locales/es.yml

es:
  routes:
    something: hola_mundo
    users:
      path: usuarios
      path_names:
        new: nuevo
        edit: editar


Cuando hago el rake routes, me muestra perfectamente las rutas
traducidas (algo hermoso), pero en el browser no encuentra las
traducciones.

Lo que quiero es algo sencillo, estuve probando algunos plugins y gems
como i18n_routing y routing_filters, sin suerte.


desde ya muchas gracias..

-- 
Luis Lopez
Web developer.
May the Force be with you
http://www.llopezblog.com.ar
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a