I want my @current_user in my model: A Lesson in Abstraction
This method was adapted from this blog post. So, you are creating a thing (record) or maybe you are updating…
Achieving Developer Excellence with Automated Testing
Stuff relevant to Ruby on Rails.
This method was adapted from this blog post. So, you are creating a thing (record) or maybe you are updating…
The referrer is the URL the user came from. (It gets passed as part of the headers to the new…
Note that when setting the Rails environment you have to pass it differently in different cases. For rake, set RAILS_ENV=…
WARNING: These instructions are for Facebook version 1 (not Facebooker2). Since last year, I have moved toward using a different…
Quick cheet-sheet to help you remember when to type a singular entity or a plural.
Create a file in your home directory here: ~/.gitconfig (The dot makes it invisible of course) In this file, you…
In your views: controller.action_name controller.controller_name In the controller itself, you can just call controller_name action_name If you want the current…
The relative url root is the thing that is appended to the front of your path, but after the domain…
Some great shortcuts for script generation. I always try to start by building scaffold for any new entity, then remove…
I’m working with a plugin that I wrote. I want to pull the plugin into an app I’m writing, but…