Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Refinery CMS #13

Open
eltercero opened this issue Mar 28, 2012 · 1 comment
Open

Conflict with Refinery CMS #13

eltercero opened this issue Mar 28, 2012 · 1 comment

Comments

@eltercero
Copy link
Contributor

Since refinery has this:

mount Refinery::Core::Engine, :at => '/'

I had to declare the front routes before that like this:

App::Application.routes.draw do
  # Frontend routes
  namespace :refinery, :path => "" do
    namespace :success_stories do
      resources :success_stories, :path => '', :only => [:index, :show]
    end
  end  
end

ActionDispatch::Routing::Translator.translate_from_file('config/locales/routes.yml')

App::Application.routes.draw do
  mount Refinery::Core::Engine, :at => '/'
end

And it works perfect, I can access model with the translations and everything. The problem is that the url methods aren't working at all:

undefined method `refinery_clients_client_es_url' for #<#<Class:0x0000010a260d80>:0x0000010b101088>

But rake routes show me that link like it's ok:

 refinery_clients_client_es GET    /clientes/:id(.:format)                                                 refinery/clients/clients#show {:locale=>"es"}

I guess it's not reaching the translation from the Refinery engine, but I don't know how to make it work.

Thanks!

@itschn
Copy link

itschn commented Oct 10, 2013

1+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants