lib/generators/nifty/authentication/templates/users_controller.rb in nifty-generators-0.4.0 vs lib/generators/nifty/authentication/templates/users_controller.rb in nifty-generators-0.4.1
- old
+ new
@@ -1,9 +1,9 @@
class <%= user_plural_class_name %>Controller < ApplicationController
def new
@<%= user_singular_name %> = <%= user_class_name %>.new
end
-
+
def create
@<%= user_singular_name %> = <%= user_class_name %>.new(params[:<%= user_singular_name %>])
if @<%= user_singular_name %>.save
<%- unless options[:authlogic] -%>
session[:<%= user_singular_name %>_id] = @<%= user_singular_name %>.id