You might want to consider creating a plugin, depending on how you plan
to use it. When I have needed to change how things work, I have done
that.
If you put things in your lib folder, you''ll need to require them in
environment.rb
Plugins are included automatically. That''s why I use them.
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brasten Sager
Sent: Wednesday, February 08, 2006 3:14 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] Extending Rails classes
Whereabouts would I want to put a Ruby file that extends a Rails class?
Say, adding a method to ActiveRecord::Base or something along those
lines. I''ve read that those classes go in /lib, but my application
doesn''t seem to see the changes I''ve made. Obviously
I''m missing
something...
Any suggestions would be appreciated!
-Brasten
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails