diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 3c44b5cd..e8399130 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -14,6 +14,10 @@ class MainController < ApplicationController def index redirect_to(:dashboard) if user_signed_in? + + @resource ||= User.new + @resource_name = :user + @devise_mapping ||= Devise.mappings[:user] end def about_notebook diff --git a/app/helpers/devise_helper.rb b/app/helpers/devise_helper.rb index 3efb4c80..ca61f0d2 100644 --- a/app/helpers/devise_helper.rb +++ b/app/helpers/devise_helper.rb @@ -2,4 +2,16 @@ module DeviseHelper def devise_error_messages! resource.errors.full_messages.map { |msg| content_tag(:li, msg + '.') }.join.html_safe end + + def resource_name + :user + end + + def resource + @resource ||= User.new + end + + def devise_mapping + @devise_mapping ||= Devise.mappings[:user] + end end \ No newline at end of file diff --git a/app/views/main/index.html.erb b/app/views/main/index.html.erb index f1e1668a..5ccc087f 100644 --- a/app/views/main/index.html.erb +++ b/app/views/main/index.html.erb @@ -135,14 +135,13 @@
@@ -151,12 +150,171 @@
+ <%= t('marketing.landing_page.benefits.organization.text') %> +
++ <%= t('marketing.landing_page.benefits.backups.text') %> +
++ Write quickly with reference sheets at the ready. You can view details about + your world without leaving the editor! +
++ <%= t('marketing.landing_page.benefits.sharing.text') %> +
++ <%= t('marketing.landing_page.benefits.ads.text') %> +
++ Once you've signed up, you can immediately start creating universes and filling them with characters, + locations, and items. The worlds you create are private, owned by you, and always available on any + device, any time you need them. +
++ trusted by +
+- <%= t('marketing.landing_page.benefits.characters.text') %> -
-- <%= t('marketing.landing_page.benefits.organization.text') %> -
-- <%= t('marketing.landing_page.benefits.sharing.text') %> -
-- <%= t('marketing.landing_page.benefits.backups.text') %> -
-- <%= t('marketing.landing_page.benefits.ads.text') %> -
-