Ardekantur

Computer Science, Ruby, and Software Engineering.

Category: Tutorials

Sinatra 0.9 and Pre-RSpec Modifications

I have no idea if this is the right way to do this, but it certainly works. Say you’re working in Sinatra 0.9, and have an application that subclasses Sinatra::Base. Call it AwesomeApp. What if you want to fiddle around with it — in my case, set application options — before RSpec starts running with [...]

Canticore has Filters! Making Markdown Work for Us

I was going to create a new repo on GitHub to show off this awesomeness, but then I figured, why not just show everyone how to use the new filter functionality?

Minus all the cruft of being a gem, this is the only code you’ll write to create a Markdown plugin for your Canticore blog.

require ‘canticore/plugin’ require [...]

My Adventures with Entity Framework and Oracle

I struggle to understand the Entity Framework, and struggle even more to force it to make sense with Oracle.

Custom Rails Validations

I’ve been having some trouble getting custom rails validations to work after reading Peter Marklund’s post on the topic. I finally have a configuration that works, and I’m posting it up here because

I’ve read some random posts and threads about problems with this, and Because randomly this configuration seems to stop working for me.

So here [...]

Writing A Web Application In Merb Part II

More Thoughts on Our Design

As good as it is that we’ve started to play around with the model behind our web application, I feel I was flailing a little bit too much in the original article—jumping all over the place from idea to implementation. Reading over it again we get a good idea of what [...]