-
Development with Ruby and Ruby Gems… (arggh!)
If you have a few hours weeks to kill, go online and search for RVM, rbenv, “bundle exec“, “You have already activated…” and a dozen other common issues. Based on the volume of articles and forum posts on these topics, I’d say that managing Ruby and Ruby Gems versions is perhaps the largest single Time…
-
Implementing read-only models with ActiveRecord
I’m wrapping up an app with some ActiveRecord models that are based on fixed data (i.e. data tables that are not created or managed by the Rails app.) This is actually a pretty useful way to access some types of external data in Rails, but problems cascade if/when you accidentally write to the supposedly r/o…
-
Ruby file encoding determination with EncodingSampler gem
Is there a good automatic way to determine file encoding? If you have had to deal with importing user data from text files, you’ll know a couple things about character encodings: Using the wrong encoding to interpret the file is disastrous. Once you start to notice this, you’ll see it all over the web. Users have no…
-
RVM or rbenv or ???
You’d miss all the interesting and informative discussion, but if you like, you can skip to the answer. Long story but I recently switched my primary Rails 3 development platform from Aptana Studio 3 to Sublime Text 2. And this is how it goes with Rails development… you want to change editors, and a key capability…