[Nitro] testable controllers

George Moschovitis george.moschovitis at gmail.com
Wed Sep 19 05:00:36 EDT 2007


Ok,

I re-enabled the old behaviour. Please pull the latest repo code, and let me
know if everything works as expected.

thanks,
-g.

On 9/19/07, Jonathan Buch <john at oxyliquit.de> wrote:
>
> Hi,
>
> > In retrospect, 3. is not that safe, and 1-2 are not serious flaws. So
> > if more people want the return string feature back, I will bring it
> > back...
>
> I liked the return string method because:
>
> ruby -rubygems -rnitro -e 'class C; def index; "Hello World!"; end; end;
> Nitro.start(C)'
>
> I know it's not that useful when you write bigger actions, but I
> still use it for small 'communication', where I return JSON from
> an action or simply return 'error', 'success' as API.
> For those just using the 'return string' is the most easy and
> most elegant looking method.
>
> Jo
>
> --
> Feel the love
> http://pinkjuice.com/pics/ruby.png
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070919/5ea2c149/attachment.html 


More information about the Nitro-general mailing list