We all know how easy it is to create a Rails app, but what about when your app is ready for production? The first thing you need to do is to set up your server and install the proper libraries, so fire up a terminal window and SSH into your server, after you have done…
Continue Reading… 
Redis is a key-value store that stands out from others, like memcached, in that it has built-in support for data structures like lists, sets, and hashes, and that it can persist data to disk. As such, it is quite useful as both a cache store and as a full-fledged, NoSQL data store. In this article,…
Continue Reading… I’d heard second hand for a long time that Mark Bates was a great public speaker, but it wasn’t until the March meeting of Boston.rb that I had a chance to find out for myself. He gave a great presentation called Testing Rich Client Side Apps with Jasmine, about how to use Jasmine and other…
Continue Reading… My Previous Articles About DDD for Rails Developers In Part 1, I talked about using the layered architecture for tackling domain complexity. I showed a few typical violations of the layered architecture and gave some advice on how to fix them. In Part 2, I started talking about the building blocks of Domain Driven Design.…
Continue Reading… 
A couple of months ago, I wrote an article about how I rapidly built my personal site using Sinatra. While I was building the site I started thinking about the best way to add JavaScript files to the pages. After playing with it for a while, I ended up using some custom helper methods to…
Continue Reading… In Part One of this series, I explained how to create a Rails application with a sign up form. This article concludes the process of user authentication Authentication Method As we can now save encrypted passwords in the database, it’s time to setup the authentication method that will take a username/email and password to find…
Continue Reading… 
(Note: Source code accompanying this article can be found here.) Today we’re going to learn how to implement simple user authentication in a Rails application from scratch. We’ll examine best practices to help avoid common, often costly, mistakes. Introduction to User Authentication Password-protected actions are a common feature in most web applications, only allowing registered…
Continue Reading… 
Imagine you’re writing a Rails app to organize conferences. As soon as you know what the app can do, you have to start deciding who can do what. Who is allowed to: Decide who will speak at the conference? Edit the presenter schedule? Upload presentation slides? Comment on those slides? Create playlists of music? Make…
Continue Reading… 
Sinatra: Up and Running was published at the end of last year by O’Reilly Press and is the first book to be written exclusively about Sinatra. It is written by Alan Harris and Konstantin Haase. Konstantin is the current maintainer of Sinatra and probably knows more about it than anybody else (You can find out…
Continue Reading… 
Rule one to metaprogramming: Don’t Panic! Like many others, I have struggled with the term metaprogramming. For the purposes of this article I’ll be going broad with my working definition of metaprogramming to include: Any code that significantly raises the level of abstraction and/or any code that creates code. -Me This definition is wildly oversimplified.…
Continue Reading…