Hi, a question about this: http://wiki.merbivore.com/upload ...
I got uploading to work ok (sweet!), but I'm scratching my head about
the partitioned_path method defined at the end of the Attachable
module -
-----
def partitioned_path(id)
*("%06d" % id).scan(/.../)
end
-----
What is the asterisk there for? I'm not a ruby expert at all but I'm
afraid I don't recognize the syntax. It throws a syntax error when I
define it as written, but does what I think the code is meant to do if
I leave it out. Is it just a typo, or am I missing something?
Mark.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---