Sha256: ce7a5eb1d83205ee5f50249299bff820045e532fdd24523aec00b93e78165f9e
Contents?: true
Size: 645 Bytes
Versions: 9
Compression:
Stored size: 645 Bytes
Contents
class <%= class_name %>Controller < ApplicationController hobo_user_controller auto_actions :all, :except => [ :index, :new, :create ] def create hobo_create do if valid? self.current_user = this flash[:notice] = I18n.t("hobo.messages.you_are_site_admin", :default=>"You are now the site administrator") redirect_to home_page end end end <% if invite_only? -%> def do_accept_invitation do_transition_action :accept_invitation do self.current_user = this flash[:notice] = I18n.t("hobo.messages.you_signed_up", :default=>"You have signed up") end end <% end -%> end
Version data entries
9 entries across 9 versions & 1 rubygems