Skip to content

Commit dc63265

Browse files
committed
update Readme
1 parent 7cabfad commit dc63265

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ class Employee < ApplicationRecord
123123
has_one_attached :avatar
124124
end
125125
```
126+
127+
Get image url:
128+
```ruby
129+
# If @employee is an object of your model that has data.
130+
131+
# To get the original image url, use
132+
@employee.avatar.url
133+
```
134+
126135
Now lets configure active_storage as a service for the imagekitio.
127136

128137
First add `:active_storage` in initializer file.

0 commit comments

Comments
 (0)