Category Archive: rails

Nov 25

Configuring MongoMapper Indexes in Rails App

Ever wonder where the best place is to specify indexes for MongoMapper classes? Me too… Here I provide three styles that I have progressed through.

Apr 17

RVM Install Troubleshooting

All I wanted to do was sit down with Mike Hartl’s “Ruby on Rails 3 Tutorial” yesterday. Hours later, with nothing to show other than a zillion open terminals, I punted and watched the Flyers beat the Sabres despite playing like girls (I know, unfair to girls!). Then I went to bed. So I must …

Continue reading »

Nov 01

Class- and Field-Level Custom Validations

This is a simple example I put together for someone asking how this validation stuff works… In this example, you can see field-level validation: team must be chosen name is required And you can see a class/base-level validation: at least one method of contact, a phone or an email: Simple class example that employs some …

Continue reading »