Sha256: 376730463676f41af68d05ec68491826558e179fc7c8b573ff30a80d91b87829
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 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] = 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 if this.valid? self.current_user = this flash[:notice] = t("hobo.messages.you_signed_up", :default=>"You have signed up") end end end <% end -%> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hobo-1.3.0.pre31 | lib/generators/hobo/user_controller/templates/controller.rb.erb |