.net and other musings

Ben Lovell, an agile developer living in the UK.

Category: Ruby

Twitter bootstrap rails updated to bootstrap v2.2.2

Just a quick one: I’ve updated twitter bootstrap rails to bootstrap v2.2.2 which includes a fix (among others) to address the issues with iOS devices and button group drop-downs.

Go forth!


Sinatra: Matching routes with or without trailing slashes

I felt compelled to post this as it took me more than a few minutes to figure this one out. Sinatra treats URLs with/without trailing slashes differently unless you append “/?” to the end of your route like so:

get "/test/?" do
    'in test'

The route specified above will match both “/test” and “/test/”.