[Nitro] Request#params

Robert Mela rob at robmela.com
Wed Oct 3 08:26:29 EDT 2007


It's not working in OgAdminController.

Perhaps it's some interaction with WebFile...?

Try OgAdminController with this model (written from memory -- some 
changes might be needed....)

In app.rb:

require 'raw/model/webfile'

Model:

class Asset
    attr_accessor :name, String
    attr_accessor :file, WebFile
end
  

George Moschovitis wrote:
>
>     * request.params['foo']
>     * request['foo']
>
>     I use the second form all the time.
>
>
> I use request["foo"] too...
>
> btw you can also use:
>
> request[:foo]
>
> one more hidden 0.50.0 new feature?
>
> -g.
>
>
> -- 
> http://gmosx.me.gr
> http://phidz.com
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr <http://www.joy.gr>
> http://nitroproject.org
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rob.vcf
Type: text/x-vcard
Size: 116 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20071003/1fb60d35/attachment.vcf 


More information about the Nitro-general mailing list