move save search button to sidebar
This commit is contained in:
@@ -90,6 +90,7 @@ class ApplicationController < ActionController::Base
|
||||
flash[:notice] = "This feature isn't available: #{@exception.message}"
|
||||
respond_to do |fmt|
|
||||
fmt.html { redirect_to :back }
|
||||
fmt.js { render nothing: true, status: 501 }
|
||||
fmt.json { render template: "static/error", status: 501 }
|
||||
fmt.xml { render template: "static/error", status: 501 }
|
||||
end
|
||||
|
||||
@@ -22,7 +22,7 @@ class SavedSearchesController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@saved_search = saved_searches.create(:query => params[:saved_search_tags], :label_string => params[:saved_search_labels])
|
||||
@saved_search = saved_searches.create!(:query => params[:saved_search_tags], :label_string => params[:saved_search_labels])
|
||||
if params[:saved_search_disable_labels]
|
||||
CurrentUser.disable_categorized_saved_searches = true
|
||||
CurrentUser.save
|
||||
|
||||
Reference in New Issue
Block a user