User Registration - WeeklyApps/blog GitHub Wiki

To Add User Registration to the Project:


  1. edit /views/devise/shared/_links.erb line 6 from
<%- if false && devise_mapping.registerable? && controller_name != 'registrations' %>

to

<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
  1. edit /config/routes.rb change
devise_for :users, :skip => [:registrations] 
as :user do
  get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
  put 'users' => 'devise/registrations#update', :as => 'user_registration'
end

to

devise_for :users