Or you can try using a plugin if you're after a simple solution.
paperclip supports both ar and dm.

Cheers.

On Dec 27, 6:43 am, Samo Korosec <[email protected]> wrote:
> It works okay for me, here's the model that takes uploaded files:
>
> http://github.com/smoofles/lepilo/tree/master/app/models/media_resour...
>
> which has the file form element defined as "media_resource
> [file]" (handled with the "file=" function) and does a couple of
> things with it. I'm using SWFUpload for multiple uploads and it works
> nice.
>
> Samo
>
> On 26 Dez., 16:30, Jenny <[email protected]> wrote:
>
> > Given that merb's major selling point is file uploads, I'm a bit
> > confused that there seems to be little to no documentation regarding
> > them. I had rails uploading files in five minutes, merb continues to
> > defeat me after 8 hours.
>
> >http://wiki.merbivore.com/upload?s[]=upload
>
> > The above is the ONLY resource I can find on merb file uploads, and it
> > seems incomplete, outdated or possibly both, because it makes little
> > since and I cannot for the life of me get it to work.
>
> > Can anyone shed some light on this arcane process, or at least point
> > me towards some decent resources?
>
> > -Jenny
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to