1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

view/views, asset/assets

This commit is contained in:
Prathamesh Sonpatki 2013-03-24 13:26:02 +05:30
parent 9a5d4288c5
commit 64dc614ca5
2 changed files with 2 additions and 2 deletions

View file

@ -492,7 +492,7 @@ image_path("edit.png") # => /assets/edit-2d1a2db63fc738690021fedb5a65b68e.png
#### image_url
Computes the url to an image asset in the `app/asset/images` directory. This will call `image_path` internally and merge with your current host or your asset host.
Computes the url to an image asset in the `app/assets/images` directory. This will call `image_path` internally and merge with your current host or your asset host.
```ruby
image_url("edit.png") # => http://www.example.com/assets/edit.png

View file

@ -568,7 +568,7 @@ interested in. We also use an instance variable (prefixed by `@`) to
hold a reference to the post object. We do this because Rails will pass all instance
variables to the view.
Now, create a new file `app/view/posts/show.html.erb` with the following
Now, create a new file `app/views/posts/show.html.erb` with the following
content:
```html+erb