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" >> > 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 >> 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. > > 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/xU5C8YSA6nMJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.