kwi / i18n_routing

I18n routing module for Rails 2.3.x and Rails 3. Translate your routes with ease !
MIT License
228 stars 48 forks source link

Bug with named routes in Rails 3 #10

Closed chalofa closed 14 years ago

chalofa commented 14 years ago

When using named routes in Rails 3, there's an error when initializing (translating the routes):

lib/i18n_routing_rails3.rb:281:in `initialize': wrong number of arguments (4 for 3) (ArgumentError)

In my routes.rb I have:

localized([:es, :en], :verbose => true) do match 'home' => 'home#show', :as => :home end

I fixed the problem (4 arguements were sent to the Parent class), you can see my solution in a note in this commit: http://github.com/kwi/i18n_routing/commit/4ecdea43564ec7d732bab6e00e32e0139103c129#comments

Thanks!

kwi commented 14 years ago

Hi,

Thanks for noticing that, but this change has been made in order to support the last rails3 release! Which version are you using?

chalofa commented 14 years ago

:o I was still using the rails 3.0.0.rc version... upgrading to the latest version solved the problem! thanks...

kwi commented 14 years ago

Great!