Search code examples
ruby-on-railsrubyopenidruby-openid

can I set the return url for ruby-openid?


I am using ruby-openid, can I change the return URL to something other than the default (current action)?

(Using rails 4)


Solution

  • You are probably looking for the return_to option:

    http://rubydoc.info/github/openid/ruby-openid/OpenID/Consumer/CheckIDRequest#redirect_url-instance_method