There are gzip compression options available but when I looked at this a long time ago I found that the …
read moreOther articles
"Sinatra application in ./lib and views, public routes not working"
I have been setting up my recent Sinatra projects with a standard ruby project layout putting all of the application …
read more"Encoding::UndefinedConversionError - "
Are you running into the following error
Encoding::UndefinedConversionError - "\xE2" from ASCII-8BIT to UTF-8:
If you are using Ruby and …
read more"CSS (Via SASS) Seperating Colour and Position"
While working on this site I wanted to find a simple way of trying out multiple stylesheets for different colour …
read more"User selectable stylesheets (Using Sinatra)"
Working on my site design I thought it would be nice to have user selectable stylesheets, say a black text …
read more"uninitialized constant Compass::Logger"
Working on a joint project an error started showing up when trying to perform migrations.
read more$ rake db:migrate VERSION=0 …
"Sinatra ActiveRecord DB config on Heroku"
To make an automatic ActiveRecord database connection using ENV['DATABASE_URL'] The following snippet can be used:
From ActiveRecord 3.2 …
read more"Sinatra regex routes"
The routes for my site have been growing since adding pagination (/articles/older/) and tag filtering. As well as the …
read more"Put methods not working with Classy Sinatra apps"
Since moving to Classy Sinatra applications I have not been able to get put and delete methods to work correctly …
read more"rake aborted! undefined method `info' for nil:NilClass"
I am currently switching between runing migrations locally on an sqlite3 database and postgres for production on Heroku.
When switching …
read more"Sinatra Heroku and config.ru"
Rack applications often require a config.ru for deployment. The standard config.ru for classic sinatra applications is well documented …
read more"Sinatra Session Extension"
I have just started to use a sinatra extensions called Sinatra Session. The write up on the main site is …
read more"Sinatra reload source file changes in development mode"
Sinatra Reloader is a sinatra extension which reloads source files while in development mode, this functionality was removed from base …
read more"Benchmark your website for load times."
I have been wondering how to do this for a while and accidentally discovered it while perusing this heroku page …
read more"Get client IP on Heroku"
I have been trying to use the GeoIP Rack App, by copying this gist in my Rack stack with a …
read more"Sinatra running on Heroku"
"WebFaction problems restarting nginx"
After updating my website on webfaction nginx kept saying permission denied and when I tried to view my site I …
read more"Ruby Memory Issue on Web Faction"
"Sinatra File Upload"
A simple Sinatra web app to upload a single file. Also available as a gist, based on http://pastie.caboo …
read more"Sinatra blog retrieving next and previous ids"
When displaying blog/articles it is often nice to have previous and next posts. Simply -1 +1 from the current …
read more"Sequel ORM Migrations"
"FourThirds Sinatra RESTful example"
"Sinatra 1.0 Released"
Sinatra 1.0 has been released!
When you install the new version the old one are still left behind. This …
read more"Sinatra and compass sending compressed cached CSS"