pdf viewer add and menu export testing

This commit is contained in:
Yan
2018-04-18 18:12:01 +06:30
parent fc523ca390
commit 28a79fe60f
6 changed files with 6 additions and 4 deletions

View File

@@ -167,8 +167,9 @@ class Settings::MenusController < ApplicationController
# end
end
p.serialize("tmp/menus/" + menu.name + ".xlsx")
render :json => {status: true}
file_path = "public/menus/" + menu.name + ".xlsx"
p.serialize(file_path)
render :json => { status: true, path: file_path }
end
def import