October 2010
3 posts
Finished the dresser
Finished the dresser for the baby’s room! More photos here: http://www.flickr.com/photos/cannikin/5087094052/in/set-72157624653668266/ And video here: http://www.youtube.com/watch?v=bNvZ1fq8Dtk&hd=1
Oct 16th
2 tags
Upload filesize limit and nginx
If you’re trying to upload a file to a server running nginx and you’re getting some weird errors, check this. By default nginx only lets you have file uploads that are a max of two megs before it gives up. It will return something like “413: Entity too large.” When that happens head over to your nginx.conf file (or whichever config file contains your server directive) and...
Oct 14th
2 tags
Using Rails 3 route helpers outside of a...
I’m working on a job for delayed_job which sends an email including a link back to the site. I wanted to use Rails’s built-in URL helpers like new_post_path and edit_blog_url. After a little poking around I found this method call which gives you access to all the helpers from anywhere: Rails.application.routes.url_helpers Append your helper call to that method chain to get the...
Oct 12th