Em 04-03-2012 14:40, Mark Peterson escreveu:


On Sunday, March 4, 2012 11:08:54 AM UTC-5, Rodrigo Rosenfeld Rosas wrote:

    Em 03-03-2012 13:47, Mark Peterson escreveu:


    On Saturday, March 3, 2012 11:42:17 AM UTC-5, kristian wrote:

        On Sat, Mar 3, 2012 at 9:44 PM, Rodrigo Rosenfeld Rosas >
        > ---
        >
        > class User < ActiveResource::Base
        >   self.site = "http://localhost:9000 <http://localhost:9000>"
        > end"
        > ---
        >
        > I don't call this "lack of syntactic sugar". This is
        completely wrong Ruby
        > code and makes me feel that you don't know Ruby enough.
        Please, post the
        > full code as it is actually easier to read the code with
        all its "syntactic
        > sugar".
        >
        please have a look at
        http://api.rubyonrails.org/classes/ActiveResource/Base.html
        <http://api.rubyonrails.org/classes/ActiveResource/Base.html>
        and see where this is coming from. but maybe I might just got the
        whole thing wrong ;-)

        regards, Kristian


    But he had this strong sense that I did something wrong.
    Shouldn't that be good enough for you?!?!?!?!

    He glanced at bitter, unsweetened, functionally sound and
    readable code. Is it his fault that he just assumed?

    :)

    Yes, it was my fault here as I haven't used ActiveResouce::Base
    before and I was assuming that "self.site" was a random attribute
    to be included in JSON.

    Sorry for the confusion and bad assumptions. Clearly I wasn't in a
    good day after fighting the whole week with Groovy:

    
http://rosenfeld.herokuapp.com/en/articles/ruby-rails/2012-03-04-how-nokogiri-and-jruby-saved-my-week
    
<http://rosenfeld.herokuapp.com/en/articles/ruby-rails/2012-03-04-how-nokogiri-and-jruby-saved-my-week>

    Sorry again,
    Rodrigo.


Apology conditionally accepted on the grounds that you look at this JRuby/Tomcat HTTP streaming issue that I encountered, and point me in the right direction.

https://groups.google.com/forum/?fromgroups#!searchin/rubyonrails-talk/jruby/rubyonrails-talk/aIS8vlFO1qY/taex37-BveMJ

Hehe :) Where did you find the documentation for the "stream" parameter in "render"? I couldn't find the documentation for "render" itself in the Rails API site... :(

The documentation has really changed *a lot* since Rails 1 era... :(

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Core" 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/rubyonrails-core?hl=en.

Reply via email to