you are in: codestackercodes [RSS]javascript_include_all

javascript_include_all Delicious Email

http://blog.obiefernandez.com/content/2008/06/railsconf-2008.html

show/hide lines
   1    def javascript_include_all
   2      includes = ''
   3      Dir.new("#{RAILS_ROOT}/public/javascripts").each do |js|
   4        next if js == "." or js == '..' or !js[".js"]
   5        includes += javascript_include_tag(js) + "\n"
   6      end
   7    end
created by leozera — 16 November 2008 — get a short url — tags: helper obie rails embed

Comments



We dont send spam :)

If checked, it's highlights your comment
simple_captcha.jpg
Are you a human? Type the code from the image