Hello friends,
I need to store the images of user into there own directory for e.g
"public/uploads/user_(user_id)"
So I am declaring it inside the model.
has_attachment :path_prefix =>
''public/uploads/user_#{current_user}''
As current user is not accessible from model. So in this case how can i save
the images into the user directory?
Please help me with this situation.
Regards
Abhi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---