update shop.name

This commit is contained in:
Aung Myo
2018-02-09 14:58:08 +06:30
parent aeafbb4fae
commit 974dde54c0
4 changed files with 17 additions and 1 deletions

View File

@@ -126,6 +126,12 @@ class HomeController < ApplicationController
render :json => {:status=> "Success", :url => root_path }.to_json
end
#Shop Name in Navbor
helper_method :shop_detail
def shop_detail
@shop = Shop.first
end
private
# Never trust parameters from the scary internet, only allow the white list through.
@@ -163,4 +169,5 @@ class HomeController < ApplicationController
redirect_to reports_dailysale_index_path
end
end
end