Re: File uploads

2008-07-26 Thread Magnus Holm
They havent't changed the method. They probabely should. When you run Mash.new it transforms all keys to strings (and turns Hash'es to Mash'es), Mash[] doesn't do anything like that. And it isn't Mash[:test = 1, :cool = 2] which raises errors, it's when you call #inspect on it (it tries to sort

Re: File uploads

2008-07-23 Thread zimbatm
Yum. Did you try just setting YourApp::H = Mash ? If it works like this out of the box then we can keep the simpler solution and provide a recipe to work with mash ? 2008/7/23 Magnus Holm [EMAIL PROTECTED]: I'm playing with Mash (http://mash-hash.rubyforge.org/) which has some really nifty

Re: File uploads

2008-07-23 Thread Magnus Holm
Mash[] doesn't work exactly as wanted (if you give it symbols): Mash[:test = 1] #= Mash test=nil Mash[:test = 1, :cool = 2] #= Raises error So we have to alias self[] to self.new... On Wed, Jul 23, 2008 at 10:10 AM, zimbatm [EMAIL PROTECTED] wrote: Yum. Did you try just setting

Re: File uploads

2008-07-23 Thread zimbatm
This is curious... why would they change that behavior ? 2008/7/23 Magnus Holm [EMAIL PROTECTED]: Mash[] doesn't work exactly as wanted (if you give it symbols): Mash[:test = 1] #= Mash test=nil Mash[:test = 1, :cool = 2] #= Raises error So we have to alias self[] to self.new...

Re: File uploads

2008-07-22 Thread Magnus Holm
I'm playing with Mash (http://mash-hash.rubyforge.org/) which has some really nifty stuff. Here's the branch: http://github.com/judofyr/camping/tree/mash. It requires 0.0.6 (which is only on GitHUb), but will work with 0.0.3 if you drop the latest patch. I don't know if it's worth another