Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed the link_js to use standard closing instead of the single closi…

…ng tag
  • Loading branch information...
commit 944118d186c36c0be78b17d381882a4d1e6baa5b 1 parent 29516d0
@vanntastic authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 app_generators/sinatra_app/templates/lib/app_helper.rb.erb
View
5 app_generators/sinatra_app/templates/lib/app_helper.rb.erb
@@ -42,11 +42,10 @@ module AppHelper
srcs_length = srcs.split(",").length
content = ""
if srcs_length == 1
- content = single_tag(:script, :src => "/js/#{srcs}.js",
- :type => "text/javascript")
+ content = tag(:script,"", :src => "/js/#{srcs}.js", :type => "text/javascript")
else
srcs.split(",").each do |src|
- content << single_tag(:script, :src => "/js/#{src.strip}.js",
+ content << tag(:script,"", :src => "/js/#{src.strip}.js",
:type => "text/javascript")
content << "\n"
end
Please sign in to comment.
Something went wrong with that request. Please try again.