Hi to everyone,
I’m trying to implement OpenID + restful authentication on my personal
website.
So far I’ve got to the point where I get redirected to the openid
provider (myopenid.com) to authorize my domain. Then when the provider
redirects me back
to my site, everything blows up with:
ctionController::UnknownAction (No action responded to show):
/vendor/rails/actionpack/lib/action_controller/filters.rb:697:in
call_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
perform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
perform_action_without_caching’
/vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
perform_action' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
cache’
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
cache' /vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
perform…
Now, in routes.rb I have:
map.root :controller => “welcome”
map.open_id_complete ‘session’, :controller => “sessions”, :action =>
“create”, :requirements => { :method => :get }
map.resources :users
map.resource :session
map.logout ‘logout’, :controller => ‘sessions’, :action => ‘destroy’
map.resources :albums, :has_many => :photos
map.resources :posts, :has_many => :comments, :has_one => :icon
map.home ‘home’, :controller => ‘home’, :action => ‘index’
map.connect ‘:controller/:action/:id’
map.connect ‘:controller/:action/:id.:format’
Rails is 2.0.2, ruby-openid 2.0.4, and the latest
open_id_authentication.
Googling around, everything seems to point the finger to routes.rb not
being
properly configured but, to me, it does seems right.
I have even tried to use “:conditions” in place of “:requirements”,
still no
joy.
What’s that I’m doing wrong?
Thanks in advance for your help.
Regards,
Carmine