For paperclip, make sure you're using the right version if you're
getting errors. If you're using datamapper, try this one:

http://github.com/krobertson/dm-paperclip/tree/master

It's got some documentation there and it's specific to merb, so it
might be easier to follow.

epoch

On Dec 30, 1:41 am, Jenny <[email protected]> wrote:
> Oh! Also, I have no idea what  "module" is or where in the code I
> would put it (re: the tutorial), and I can't seem to find sufficient
> documentation regarding this. It kind of irritates me that the
> tutorial is not self contained.
>
> -Jenny
>
> On Dec 26, 2:02 pm, Ezra Zygmuntowicz <[email protected]> wrote:
>
> > On Dec 26, 2008, at 7:30 AM, Jenny 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
>
> >         What problems did you run into? It is literally a few lines of code 
> >  
> > to handle an upload. You just upload to an action, and in that action  
> > you will get a certain hash in the params that is like this:
>
> >              {:filename => File.basename(filename),
> >              :content_type => content_type,
> >              :tempfile => body,
> >              :size => File.size(body.path)}
>
> > So you get the filename, the content type, :tempfile is the actual  
> > file on disk and :size is the size of the file. Do whatever you want  
> > with it from there.
>
> > Cheers-
> > Ezra Zygmuntowicz
> > [email protected]
>
>
--~--~---------~--~----~------------~-------~--~----~
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