Edit route for delete in print Settings
This commit is contained in:
@@ -60,10 +60,8 @@ class PrintSettingsController < ApplicationController
|
|||||||
# DELETE /print_settings/1.json
|
# DELETE /print_settings/1.json
|
||||||
def destroy
|
def destroy
|
||||||
@print_setting.destroy
|
@print_setting.destroy
|
||||||
respond_to do |format|
|
flash[:notice] = 'Print setting was successfully destroyed.'
|
||||||
format.html { redirect_to print_settings_url, notice: 'Print setting was successfully destroyed.' }
|
render :json => {:status=> "Success", :url => print_settings_url }.to_json
|
||||||
format.json { head :no_content }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_printer_options
|
def get_printer_options
|
||||||
|
|||||||
@@ -492,6 +492,7 @@ scope "(:locale)", locale: /en|mm/ do
|
|||||||
|
|
||||||
#----------- Print Setup --------#
|
#----------- Print Setup --------#
|
||||||
resources :print_settings
|
resources :print_settings
|
||||||
|
delete '/:id/print_settings' => 'print_settings#destroy'
|
||||||
|
|
||||||
get '/get_printer_options/:printer_name' => 'print_settings#get_printer_options'
|
get '/get_printer_options/:printer_name' => 'print_settings#get_printer_options'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user