Hello Philip,
I have tried this, but unfortunately it has not worked. I can only see
the image file name with a cross icon, but the image can't be seen.
Some additional information - in the log, I can see this error (just
in case it helps):
ActionController::RoutingError (No route matches "/css/iepngfix.htc"
with {:method=>:get}):.
I am presently working on a single computer.
love-n-peace,
@shaan
'Aal izz well' :-)
On Feb 15, 10:47 am, Philip Hallstrom <[email protected]> wrote:
> On Feb 15, 2010, at 8:13 AM, @shaan wrote:
>
>
>
>
>
> > Hello,
>
> > I am using the paperclip plugin to upload images and it works
> > absolutely fine.
>
> > I intend to save my uploaded images to C:\Application_name\public
> > folder. Accordingly, with some study over the i-net, I changed
> > the :path option of has_attached_file to -
>
> > :path => "C:/Application_name/
> > public/:class/:attachment/:id/:style_:basename.:extension"
>
> > Now, the files are being saved to the desired path. However, I need to
> > understand what should be the corresponding change in the :url option.
>
> > I tried everything -
>
> > :url => "/:id/:style_:basename.:extension"
> > :url => "C:/Application_name/
> > public/:class/:attachment/:id/:style_:basename.:extension"
> > :url => "/public/:class/:attachment/:id/:style_:basename.:extension"
>
> > but none of them work. The image couldn't be displayed.
>
> > Request, please share any inputs which could help me further to this.
>
> :url => "/:class/:attachment/:id/:style_:basename.:extension"
>
> Basically the same thing as :path, starting at where 'public' leaves
> off.- Hide quoted text -
>
> - Show quoted text -
--
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 this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.