Skip to content
Browse files

Merge pull request #3769 from kennyj/fix_index_html

avoid url started with "/" for the rails.png in public/index.html
  • Loading branch information...
2 parents ee8db25 + 78ad94a commit e7e046fa1ca66a3f6edf0731ca64d6529a749790 @josevalim josevalim committed
View
2 railties/lib/rails/generators/rails/app/templates/public/index.html
@@ -59,7 +59,7 @@
#header {
- background-image: url("/assets/rails.png");
+ background-image: url("assets/rails.png");
background-repeat: no-repeat;
background-position: top left;
height: 64px;
View
1 railties/test/generators/app_generator_test.rb
@@ -55,6 +55,7 @@ def test_assets
assert_file "app/views/layouts/application.html.erb", /javascript_include_tag\s+"application"/
assert_file "app/assets/stylesheets/application.css"
assert_file "config/application.rb", /config\.assets\.enabled = true/
+ assert_file "public/index.html", /url\("assets\/rails.png"\);/
end
def test_invalid_application_name_raises_an_error

0 comments on commit e7e046f

Please sign in to comment.
Something went wrong with that request. Please try again.