pelle/oauth-plugin — Issue #109: Failing to display list of OAuth clients after authorizing a client app
Author: asavin
Created: 2012-02-03 10:39:13+00:00
State: open

I'm getting this error when trying to access /oauth_clients after I've authorize a client app to access my account:

------------------------------
ActionController::RoutingError in Oauth_clients#index

Showing /home/alex/hundredthings/app/views/oauth_clients/index.html.erb where line #12 raised:

No route matches {:controller=>"oauth", :action=>"revoke"}
Extracted source (around line #12):

9:	<%= link_to token.client_application.name, token.client_application.url %>
10:	<%= token.authorized_at %>
11:
12: <% form_tag :controller => 'oauth', :action => 'revoke' do %>
13: <%= hidden_field_tag 'token', token.token %>
14: <%= submit_tag "Revoke!" %>
15: <% end %>
Rails.root: /home/alex/hundredthings

Application Trace | Framework Trace | Full Trace
app/views/oauth_clients/index.html.erb:12:in `block (2 levels) in _app_views_oauth_clients_index_html_erb__4342959844419038579_39707540_1970803616456943060'
app/views/oauth_clients/index.html.erb:8:in `block in _app_views_oauth_clients_index_html_erb__4342959844419038579_39707540_1970803616456943060'
app/views/oauth_clients/index.html.erb:7:in `each'
app/views/oauth_clients/index.html.erb:7:in `_app_views_oauth_clients_index_html_erb__4342959844419038579_39707540_1970803616456943060'

--------------------------

Wonder how to fix this?

Using Rails 3.0.5 with oauth and oauth_plugin gems:

gem 'oauth', '>= 0.3.0'
gem 'oauth-plugin', '>=0.4.0.pre1'