Give
:storage => :file_system,
:path_prefix => "public/user_#{current_user.id}"
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To po
Ok great things are working fine. but again i have a major concern when I am
declaring it like
:path_prefix => "public/user_#{current_user.id}"
in background it save the image in the following folder structure
"public/user_/123/_image.jpg"
And i am looking something like
"public/user_123/_ima
:path_prefix => "public/#{current_user.id}"
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
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-tal
> 'public/uploads' i want a dyname path for e.g :path_prefix => 'public/#{
> current_user.id}',
Have you tried this like
:path_prefix => "public/#{> current_user.id}"
Instead of single quotes use double quotes
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~
4 matches
Mail list logo