Sha256: d00a18f87234a04484be3256b83d0c3ec16eeb6b6633f1d74119f1a55fadf0f1
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 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_path else render :action => 'new' end end end
Version data entries
2 entries across 2 versions & 1 rubygems