rails
Where's Your Business Logic?
Can you point to a single place in your application and say “here is where we implement our business rules and use cases”, or are your use cases spread out across controllers, models, libs and elsewhere? Do you have fat models, fat controllers, and/or a massive lib directory? Is adding new features quick and easy or painful and time consuming? I have a solution to your pain.
Walken on Rails
Our new screencast series features narration by Christopher Walken.
Give pry a Try
One of the things holding us back from developing on Ruby 1.9.3 has been ruby-debug. So after many people suggested we try it, we gave pry a shot. I don’t know why we didn’t before; it is quick, easy, and allows a wide range of Ruby versions.
Capybara, Cucumber and How the Cookie Crumbles
I use Capybara and Cucumber to test my Rails apps, but cookie management can often be difficult… until now.
Changing Your Stripes
Using Stripe to take credit cards online.
Thinking about Ruby's Symbols
Symbols in Ruby are confusing to new users.
Use Chrome with Cucumber & Capybara
Swapping out Firefox for Chrome is easier than you think!
Rails 3.1 Hackfest this Saturday
There’s a Rails Hackfest this weekend and we are opening our doors to Rails devs who want to participate.
Automatic Login Links
Scary, I know, but hear me out. Implemented correctly, an automatic login link can be just the ticket to appease those pesky, forgetful, real-world users.
More User-centric Routes: Rails 2
Writing routes that are conditional upon whether a user is logged in is easy with Rails 3 but if you find yourself (as many of us do) stuck with a Rails 2 app, here’s how to achieve the same fancy routes without the latest Rails.
User-centric Routing in Rails 3
Have you ever noticed that the GitHub homepage is different once you log in? I’m not talking about little changes here and there. It’s a completely different page. I have no idea how GitHub does this but I’ll venture a guess and demonstrate how to achieve the same effect.
Testing with Sunspot and Cucumber
Testing with sunspot with cucumber can be tricky since you need to manage the solr process separately. This post introduces a new gem “sunspot_test” and how to easily use it.
Bundler makes contributing to ruby gems easier
After using Bundler for the past few months, I love it. It turns managing project dependencies and deployment into a piece of cake. However after coming across a particular dependency declaration, something clicked in my head that made me like it even more.
Using Solr and Sunspot to Search Within Words
In my previous post I mentioned that out of the box Solr breaks up the search indexes on whitespace. This post will outline how you can configure Solr to search within words.
Full Text Searching with Solr and Sunspot
Exploring Solr and Sunspot
We have experienced a lot of success using Solr and Sunspot for full text searching on our Rails projects. And like our Cucumber series, we’re going to start a series of related posts just on Sunspot/Solr.
Clever Custom Datatypes with MongoMapper
A whole world of rich objects is within your reach with MongoDB.
2010: The Open Source Tools that Made it Great
My list of open source tools that made a big impact on our work this year.
SSL with Rails
Lots of people have been wondering about SSL after seeing Firesheep in action. Here’s how to get started with Rails.
