diff --git a/app/controllers/favorite_groups_controller.rb b/app/controllers/favorite_groups_controller.rb index b7598a1be..2df12890f 100644 --- a/app/controllers/favorite_groups_controller.rb +++ b/app/controllers/favorite_groups_controller.rb @@ -21,15 +21,7 @@ class FavoriteGroupsController < ApplicationController def create @favorite_group = FavoriteGroup.create(favgroup_params) - respond_with(@favorite_group) do |format| - format.html do - if @favorite_group.errors.any? - render :action => "new" - else - redirect_to favorite_groups_path - end - end - end + respond_with(@favorite_group) end def edit diff --git a/app/views/favorite_groups/_add_to_favgroup_dialog.html.erb b/app/views/favorite_groups/_add_to_favgroup_dialog.html.erb index 48b35c55e..0f9586f6e 100644 --- a/app/views/favorite_groups/_add_to_favgroup_dialog.html.erb +++ b/app/views/favorite_groups/_add_to_favgroup_dialog.html.erb @@ -1,12 +1,22 @@ -
Select a favorite group to add this post to:
+<% if CurrentUser.favorite_groups.empty? %> +Add this post to a new a favorite group (<%= link_to_wiki "help:favorite_groups" %>):
-<% CurrentUser.favorite_groups.each_with_index do |favgroup, i| %> -Select a favorite group to add this post to (<%= link_to_wiki "help:favorite_groups" %>):
+ + <% CurrentUser.favorite_groups.each_with_index do |favgroup, i| %> +