Category Archives: rails

Providing Unauthenticated API Access To An Authenticated/Authorized Controller In Rails 3, With Devise And CanCan

My current Ruby on Rails app defaults to every page and controller action in the system requiring authentication. If you’re not logged in, you don’t get to do anything other than see the login page. Once you are logged in, … Continue reading 

| Leave a comment

A question for Rubyists

I was checking out this post from Derick Bailey today, and something struck me rather odd.  Not the “DI only enables testability” argument, but the ruby code: class Foo    def bar     baz = Baz.new     baz.do_something   end end I’ve been very … Continue reading 

| 26 Comments

RVM, Bash Scripting and Rails 3 Edge

I’ve only begun to tap into the power of bash scripting, but I had a need to automate setting up a Rails 3 app on edge, using RVM like I want.  So I decided to whip up a very simple … Continue reading 

Also posted in Agile Project Coaching & Management, BDD (Behavior Driven Development), Tools | 5 Comments

OSX Terminal Automation

My OSX Terminal Environment (as of today) Some of this might be old hat for a lot of you, but maybe this will help at least a few people.  I’m a pretty big automation addict.  During my Ruby on Rails … Continue reading 

Also posted in Tools | 13 Comments

From ALT.NET to NOT.NET

For a long time now I’ve been known as “joeyDotNet”. Of course I’ll never make the mistake tying my name to a particular technology like that again. Especially given some of the recent changes I’ve made in my career. For … Continue reading 

Also posted in altnetconf, BDD (Behavior Driven Development) | 3 Comments

The Ruby/Rails Life – My Rails 3 Stack – Part 2

Rails Deployment & Testing There are some really nice tools available for deployment and testing rails. Below is a brief description of some of the ones I’ve been using with success. Capistrano I remember in the early days of my … Continue reading 

Also posted in Tools | 1 Comment

The Ruby/Rails Life – My Rails 3 Stack – Part 1

As some of you might know, About a month ago I left my almost 10 year career as a Microsoft developer to become an independent Ruby/Rails developer (a term I’m deeming “pulling a Gunderloy”). It was long overdue for me … Continue reading 

Also posted in Microsoft, Tools | 3 Comments

Git post-merge hook to auto-fire rails migrations

I saw Scott Bellware recently write on twitter: for christmas, i really want a git hook to detect if an update has changes in the db/migrations folder Cory Foy, Aaron Jensen, and myself all responded in turn. I think Cory … Continue reading 

| Leave a comment

Setting up Ubuntu Jaunty for Ruby and Rails development

Getting Ruby setup on Ubuntu – Jaunty UPDATED: Added RSpec for Rails as well Here are some quick steps to get you up and running with Ruby on Ubuntu, Take about 15 minutes depending on your internet connection. Step 1: … Continue reading 

Also posted in Ruby, ubuntu | 13 Comments

Current Status

UPDATE:  I’m very eager to see where IronRuby and RSpec go for the .NET world.  Testing my C# Applications with RSpec would be awesome.  Check out the MSDN magazine article about this stuff if you haven’t already. I’m working with … Continue reading 

| Leave a comment