Class: Virgo::InstallController
Instance Method Summary
collapse
#render_content, #with_format
#action?, #admin?, #admin_access?, #admin_view?, #alerts, #base_errors, #category_timestamp, #column_timestamp, #compact_html, #controller?, #decode_html_entities, #expanded_post_url, #is_admin_view?, #page_url, #post_time_format, #post_timestamp, #production?, #redis_timestamp_key_for, #site, #site_key, #superuser?, #tabbed_param, #word_count
Instance Method Details
#create ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/controllers/virgo/install_controller.rb', line 10
def create
@user = User.new(user_params.merge(role: :admin))
@site = Site.instance
@site.attributes = site_params
if @site.valid? && @user.valid?
@site.save!
@user.save!
@site.generate_dummy_data!
redirect_to success_install_index_path
else
render :index
end
end
|
#index ⇒ Object
7
8
|
# File 'app/controllers/virgo/install_controller.rb', line 7
def index
end
|
#success ⇒ Object
26
27
|
# File 'app/controllers/virgo/install_controller.rb', line 26
def success
end
|