Tuesday, December 11, 2012

[Rails] Re: Devise route for confirmation error with :locale

I have added

def default_url_options(options={ })
logger.debug "default_url_options is passed options:
#{options.inspect}\n"
{ :locale => I18n.locale }
end

in application_controller.rb.

But I noticed that the log shows

Started GET "/en/users/sign_up" for 127.0.0.1 at 2012-12-12 14:49:09
+0900
Processing by RegistrationsController#new as HTML
Parameters: {"locale"=>"en"}
default_url_options is passed options: {}
...

no parameter is passed!

I don't know why...

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate