amberbit / translator

This is Rails 3 engine and translation backends for MongoDB and Redis.
http://amberbit.com
MIT License
99 stars 28 forks source link

Page not found #6

Closed glebm closed 10 years ago

glebm commented 12 years ago

Doesn't seem to work with Rails 3.2.x. Getting a Page not found.

hubertlepicki commented 12 years ago

;). Any more info? I'm using it with 3.2.x right now. Not sure, if the docs are clear enough.

glebm commented 12 years ago

Maybe a docs issue?

My initializer:

require 'translator'
# Load redis before initializing translator.
require File.absolute_path('config/initializers/redis', Rails.root)

Translator.current_store = Translator::RedisStore.new(Redis.current)
I18n.backend = Translator.setup_backend(I18n::Backend::Simple.new)

Translator.auth_handler = proc { raise "Access denied" if !current_account.try(:admin?) }
Translator.layout_name = 'admin'

When i go to /translations I get page not found.

Off topic: Any reason this gem is not a rails engine with a railtie?

glebm commented 12 years ago

Any further info I can provide on this? Maybe even a remote debugging session?

hubertlepicki commented 12 years ago

Hey, we could do that. I am confused because can't reproduce it. Can we do a voice/screen sharing so you can demo me the issue?

glebm commented 12 years ago

Yes, great, I am glex_at_skype on Skype! Does 4 PM CET (in 1 hour and 30 min) work for you?

hubertlepicki commented 12 years ago

A bit earlier would suit me better as we've been planning to finish work at 16:00 and go get some beers. Anyway, I've sent you invitation on Skype, let's discuss privately.