Random trivial ideas for improving Rails

Just a couple of thoughts:

  • Any reason why, when someone says they want to turn off the
    pluralizer, Rails doesn’t just

    def pluralize(foo)
    foo
    end

    Seems like this would reduce complexity in a number of places (this
    came up here at the office when we submitted a pluralization-related
    patch to the fixtures subsystem).

  • Any reason why ActiveRecord::Errors, which has an each() method,
    shouldn’t “include Enumerable”?

Best,
Rick

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 11, 2005, at 10:57 AM, Rick B. wrote:

(this
came up here at the office when we submitted a pluralization-
related
patch to the fixtures subsystem).

This is true. However, we turn off table name pluralization, not all
pluralization. A minor distinction, but some users may rely on these
semantics. I’d prefer to turn the valve at the source, as you
suggest, after 1.0. Care to post an enhancement?

  • Any reason why ActiveRecord::Errors, which has an each() method,
    shouldn’t “include Enumerable”?

Nope! Changeset 2981.

Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFDdQ9OAQHALep9HFYRAmrIAKDDID7IkkrI6t8GfLVIiYHfYt7bbQCg2Urb
s85yS6z4mQEWikYvsf7G2WQ=
=0UWD
-----END PGP SIGNATURE-----

Hi !

2005/11/11, Alastair M. [email protected]:

I’m going absolutely nuts over this… any help would really really be
appreciated!

You might also try SCGI: http://www.zedshaw.com/projects/scgi_rails

Fast and Ruby-based, with a module for Apache 1.3 or 2.0. That’s what
I’m using for developing all my new apps. They’re deployed on
Linux/FCGI, but my dev environment is fine with that.

Bye !

François Beausoleil
http://blog.teksol.info/

Hello all,

I’m having a hell of a time getting Rails running under Apache for
Windows. I’ve created a rails app- myapp - and run it under webrick and
it works fine. I’ve followed the instructions on

http://wiki.rubyonrails.com/rails/pages/Fast+CGI+and+Apache2+for+Windows+XP

and I simply can’t get it working at all. Does anyone have any pointers
to alternative setup instructions or have any suggestions? Basically it
works to the point of:

"Now open a browser and type in ?\YourRailsAppName?

you should load the default Welcome to Rails page with blazing \FastCGI
speeds."

but if i was to do \MyApp\friends\view - for example, it can’t find the
file which leads me to believe that the rails side of things is not
working and it was simply loading the default welcome page as an
ordinary html page.

I’m going absolutely nuts over this… any help would really really be
appreciated!

Thanks,

Alastair