app/controllers/extface/devices_controller.rb in extface-0.0.5 vs app/controllers/extface/devices_controller.rb in extface-0.0.6
- old
+ new
@@ -49,11 +49,11 @@
redirect_to devices_url, notice: 'Device was successfully destroyed.'
end
def test_page
set_device
- job = @device.driveable.print_test_page
- render text: job_path(job)
+ @job = @device.driveable.print_test_page if params[:test_page]
+ render action: :show
end
private
# Use callbacks to share common setup or constraints between actions.
def set_device