you are here: codestackercodes [RSS] → tag obie [RSS]

javascript_include_all

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

  def javascript_include_all
    includes = ''
    Dir.new("#{RAILS_ROOT}/public/javascripts").each do |js|
      next if js == "." or js == '..' or !js[".js"]
      includes += javascript_include_tag(js) + "\n"
    end
  end
Displaying 1 Code