enterprise_controller.rb
621 Bytes
# Manage enterprises by providing an interface to register, activate and manage them
class EnterpriseController < ApplicationController
def register_form
@vitual_communities = VirtualCommunity.find(:all)
end
def choose_validation_entity_or_net
@enterprise = Enterprise.new(params[:enterprise])
end
def create
@enterprise = Enterprise.new(params[:enterprise])
if @enterprise.save
flash[:notice] = _('Enterprise was succesfully created')
redirect_to :action => ''
else
flash[:notice] = _('Enterprise was not created')
render :text => 'Não Salvou'
end
end
end