Skip to content

Commit

Permalink
Add app/assets/images and include the rails.png as a sample there
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Apr 19, 2011
1 parent 9aac54c commit c96bf84
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions railties/lib/rails/generators/rails/app/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ def public_directory
directory "public", "public", :recursive => false
end

def images
directory "public/images"
end

def script
directory "script" do |content|
"#{shebang}\n" + content
Expand Down Expand Up @@ -219,10 +215,6 @@ def create_public_files
build(:public_directory)
end

def create_public_image_files
build(:images)
end

def create_script_files
build(:script)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@


#header {
background-image: url("images/rails.png");
background-image: url("/assets/rails.png");

This comment has been minimized.

Copy link
@arunagw

arunagw Apr 19, 2011

Member

I think it should be /assets/images/rails.png

#291 :-)

background-repeat: no-repeat;
background-position: top left;
height: 64px;
Expand Down

0 comments on commit c96bf84

Please sign in to comment.