Em 03-03-2012 12:41, Mark Peterson escreveu:
On Saturday, March 3, 2012 9:23:16 AM UTC-5, Rodrigo Rosenfeld Rosas wrote:

    Given the code below, it seems you're just starting using Rails
    and you
    still don't understand Rails basic concepts.

    Shouldn't you consider posting in the user's mailing list first? It's
    more likely that you'll get better advices there than here...

    After you get used to Rails, if you still have questions about how
    Rails
    should do things, then your questions will be better discussed here.

    Cheers,
    Rodrigo.


Are you referring to my complete and utter lack of syntactic sugar?
It almost seems as though I deliberately avoid the stuff completely :)

Please don't remove text from the threads. Not everyone reads them in Gmail and it makes it really hard to read the messages in an e-mail client, like Thunderbird.

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

This might be the wrong forum, but I'm sure that ActiveResource team are happy that I proofed the issue.

As an expert core member Rodrigo, do you know the alternative to this line? Dir.glob("#{Rails.root}/app/models/*.rb").sort.each { |file| require_dependency file }

I'm not a Rails core member, nor even an expert in Rails. And I don't know why you need this. Shouldn't Rails be automatically loading those files? Why should they be loaded in any particular order?

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