Over many years and many Rails applications I have accumulated a lot of code that I find useful in most or all of my applications. This code is not always worthy of its own plug-in or gem so I have chosen to make it available as a Rails application.
You can download the application and see it running. If you want to incorporate any of the code into your application then it’s copy-and-paste – at least for now.
cd <desired_parent_directory> git clone git://github.com/stevedowney/rails_utilities.git
Generate the RDoc:
rake doc:app
You will need to download the application and generate the RDoc to see everything. For now a taste:
-
App - miscellaneous methods
-
App::Dir - directory methods
-
App::Env - Rails environment methods
-
App::File - file methods
-
App::OS - operating system methods
-
Array.in - help building sql statements
-
LinkHelper - view helper methods for links
Run the tests:
rake spec
-
have validates_* methods accept array of attributes
-
specs for A/R methods
Copyright © 2010 Steve Downey, released under the MIT license