You might want to make a view tag override for your paperclip attachment model. There isn't another way at this point to get the link going. That way you can wrap your old <a> with href and hide it away from the end use.
On Sep 24, 9:53 pm, Paul Davis <[email protected]> wrote: > Well, I am OK with the following crummy hack: > > <body: param> > <view:name/> > <a href="&this.file.url">Download</a> > </body:> > > It does not look great, and it sure does not seem idiomatic, but it > does the job. > > Still quite open to suggestions. > > On Sep 24, 8:07 pm, Paul Davis <[email protected]> wrote: > > > I have something that looks like progress - maybe the solution is at > > hand. > > > In my card for license_agreement_files, I have: > > > ... > > <body: param> > > <a with="&this.file"/> > > </body:> > > ... > > > This displays a reasonable relative path to the file: > > > /system/files/2/original/MSM-AMGdeal3_Part1_V.final.doc?1253839389 > > > ... but the text is not a link. > > > Any help on this? Thanks! > > > On Sep 24, 7:22 pm, "[email protected]" <[email protected]> > > wrote: > > > > In my app, users may attach license_agreement_files to a > > > license_agreement. > > > > I have installed paperclip and paperclip_with_hobo, and it is mostly > > > working. > > > > The part I need help with is the syntax for a link to download the > > > file. All the paperclip examples talk about a resized graphic, but I > > > just want a link to the file that was uploaded. > > > > Any help? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
