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:
parent
9a5d4288c5
commit
64dc614ca5
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue