Commit b2a370e0 by Harold Giménez

Detaching a file

parent fe01ae69
......@@ -106,6 +106,11 @@ In your show view:
<%= image_tag @user.avatar.url(:medium) %>
<%= image_tag @user.avatar.url(:thumb) %>
To detach a file, simple sett the attribute to `nil`:
@user.image = nil
@user.save
Usage
-----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment