diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 11e0ff19..8f668e1c 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -155,7 +155,7 @@ class ContentController < ApplicationController # If the user doesn't have this content type enabled, go ahead and automatically enable it for them current_user.user_content_type_activators.find_or_create_by(content_type: @content.class.name) - return redirect_to edit_polymorphic_path(@content) + return redirect_to polymorphic_path(@content, editing: true) else return redirect_to(subscription_path, notice: "#{@content.class.name.pluralize} require a Premium subscription to create.") end diff --git a/app/views/content/form/field_types/_tags.html.erb b/app/views/content/form/field_types/_tags.html.erb index 9ce57343..2e1ae399 100644 --- a/app/views/content/form/field_types/_tags.html.erb +++ b/app/views/content/form/field_types/_tags.html.erb @@ -51,7 +51,7 @@
- <%= hidden_field_tag "field[name]", field[:id] %> - <%= - select_tag "field[value]", - options_for_select( - @linkables_raw['Universe'].compact.sort_by(&:name).map { |u| [u.name, u.id] }, - raw_model.try(:universe_id) || @universe_scope.try(:id) - ), - include_blank: true, - class: 'autosave-closest-form-on-change block w-full px-3 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-800 focus:border-purple-800 sm:text-sm rounded-md' - %> -
\ No newline at end of file +<% if @linkables_raw.fetch('Universe', []).any? %> +
+ <%= hidden_field_tag "field[name]", field[:id] %> + <%= + select_tag "field[value]", + options_for_select( + @linkables_raw['Universe'].compact.sort_by(&:name).map { |u| [u.name, u.id] }, + raw_model.try(:universe_id) || @universe_scope.try(:id) + ), + include_blank: true, + class: 'autosave-closest-form-on-change block w-full px-3 py-2 text-base border-gray-300 focus:outline-none focus:ring-purple-800 focus:border-purple-800 sm:text-sm rounded-md' + %> +
+<% else %> + <%= link_to new_universe_path do %> +
+ <%= Universe.icon %> + +
+

+ You haven't created any universes yet! +

+

+ Universes allow you to organize your separate worlds and focus on just one universe's pages at a time. Your changes here are automatically saved. Click this box to go + create your first universe. +

+
+
+ <% end %> +<% end %> \ No newline at end of file