On 16 October 2012 12:30, BalaRaju Vankala <[email protected]> wrote:
>
>  hi i am having a doubt in changing the path for attached file i.e..,for
> uploading photos and files ..by default the path is
> ":rails_root/public/system/" and i want to change the path as
> ~/apps/Blog/data/attached/
>
> BLOG refers to my project app name
>
> after making the changes the image or file i saving but it is not displaying
> in the browser
>
> can any one help me out in  writing the correct PATH and URL
>
> these are modified Path and Url
>
> has_attached :photo,
> path:  ~/apps/Blog/data/attached/:attachment/:id/:style/:filename",
> url: /~/apps/Blog/data/attached/:attachment/:id/:style/:filename"

Normally in a rails app only files under your_app/public are
accessible directly.  If you want to access files elsewhere then you
will have to do clever things with apache or other webserver to
achieve this.

Colin

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to