added ignore file for frontend

This commit is contained in:
Harry Bomrah 2014-04-02 15:39:25 +08:00
parent 24f15db2fa
commit d173ed28b5
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@
/tmp
/Gemfile.lock
app/views/frontend

View File

@ -11,7 +11,6 @@ module PagesHelper
doc.to_html
end
def render_widget_for_frontend(controller_name, widget_method, widget_file)
file = File.open(File.join(Rails.root, 'app', 'templates', "#{Template::KEY}", 'modules', "#{controller_name}", "_#{widget_file}.html.erb"))
doc = Nokogiri::HTML(file, nil, "UTF-8")