socialcast/devise_oauth2_providable — Issue #27: NameError Devise/oauth2_providable/authorizations#new
Author: gregwinn
Created: 2011-12-01 20:44:58+00:00
State: open

Hey,
I am having a small issue with my layout and using Devise/oauth2_providable. I have Devise 100% up and working, the oauth2 has been tested from a client and is working to a point.

This issue i am getting is:

### NameError in Devise/oauth2_providable/authorizations#new

undefined local variable or method `settings_path' for #<#:0x007fd465aca328>

This issue shows it self when the user try's to login (oauth2/authorize) from oauth2. So the user is coming from the client to the provider to approve the client.

----
Here is whats in the view:

<%=link_to "Settings", settings_path%>

Here is the route to back it up:

match 'settings' => 'dashboard#settings', :as => :settings

----

What am i doing wrong here? I can remove the link from the view and it works just fine. Any help would be great, thanks!!