Sha256: a56f6e79f7991d662bcff3e5b325cf7a5ca1f43eb29088c8c4e807715db67a5d
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
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 <%- end -%> flash[:notice] = t('flash_notice_signed_up') redirect_to root_url else render :action => 'new' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
splendeo-generators-0.2.1 | rails_generators/splendeo_authentication/templates/users_controller.rb |