ruby on rails - Devise not generating paths (rake routes shows everything as expected) -
i have rails app devise / omniauth , paths devise not being recognized reason. when use example "app_user_omniauth_authorize_path(:facebook)" undefined method error. same other paths..
rake routes
returns this:
dev_section post /dev_section(.:format) custom_actions#dev_section new_app_user_session /app_users/sign_in(.:format) devise/sessions#new app_user_session post /app_users/sign_in(.:format) devise/sessions#create destroy_app_user_session delete /app_users/sign_out(.:format) devise/sessions#destroy app_user_omniauth_authorize get|post /app_users/auth/:provider(.:format) app_users/omniauth_callbacks#passthru {:provider=>/facebook|twitter|google_oauth2/} app_user_omniauth_callback get|post /app_users/auth/:action/callback(.:format) app_users/omniauth_callbacks#(?-mix:facebook|twitter|google_oauth2) app_user_password post /app_users/password(.:format) devise/passwords#create new_app_user_password /app_users/password/new(.:format) devise/passwords#new edit_app_user_password /app_users/password/edit(.:format) devise/passwords#edit put /app_users/password(.:format) devise/passwords#update cancel_app_user_registration /app_users/cancel(.:format) devise/registrations#cancel app_user_registration post /app_users(.:format) devise/registrations#create new_app_user_registration /app_users/sign_up(.:format) devise/registrations#new edit_app_user_registration /app_users/edit(.:format) devise/registrations#edit put /app_users(.:format) devise/registrations#update delete /app_users(.:format) devise/registrations#destroy
in routes.rb have:
devise_for :app_users, :controllers => {:omniauth_callbacks => "app_users/omniauth_callbacks" }
all omniauth controllers built according devise examples.. can wrong?
* edit *
i realized might worth mentioning, using refinerycms..
devise.rb looks this:
devise.setup |config| config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com" activesupport.on_load(:active_record) devise.setup require 'devise/orm/active_record' end end config.authentication_keys = [ :login ] config.case_insensitive_keys = [] config.skip_session_storage = [:http_auth] config.stretches = rails.env.test? ? 1 : 10 config.password_length = 4..128 config.reset_password_within = 6.hours config.sign_out_via = :delete config.router_name = :refinery end
Comments
Post a Comment