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

Sorry again,
Rodrigo.

--
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