(512) 879-9942

Syndicate

ActionController::InvalidAuthenticityToken - Understanding this Error in Rails

I’ve seen a lot of help requests about a specific controller error that many people encounter in Rails after sending a post request from a form they’ve custom built. The ActionController::InvalidAuthenticityToken error is Rails basically telling you that it’s not going to fall victim to a cross-site request forgery (CSRF) attack. Here’s a simplified explanation of why this occurs and how to fix the error to keep your application secure and fix the problem.

Posted by J. Austin Hughey Thu, 03 Apr 2008 04:57:34 GMT


Google's Chart API - An Example

I recently stumbled on Google’s new charting API. This is a great tool that will make creating charts and graphs much easier than some alternatives. I’ve seen some cases where you have to use extremely complex programming techniques server-side to create such charts; not so with Google.

It’s pretty simple to use: give Google a specific set of URL-encoded parameters, and it spits a PNG chart image back at you. I created a simple pie graph to display browser usage using it.

Posted by J. Austin Hughey Wed, 26 Mar 2008 18:37:46 GMT


Keeping Your E-Mail Address Safe

You have a new, spam-free e-mail address and you want to keep it pure and pristine forever. Here are a few tips on how to do just that.

Posted by J. Austin Hughey Tue, 25 Mar 2008 01:04:29 GMT


Modifying Rails URL Mapping

Maybe, instead of users going to http://yoursite/controller/view/1337, you want users to go to http://yoursite/controller/1337. In other words, you want to map the view controller to pull up by default. Here’s how to do it in Rails 2.0.2.

Posted by J. Austin Hughey Thu, 20 Mar 2008 11:12:59 GMT


Understanding Screen Resolution

You’ve probably heard me use the term “screen resolution” before. It’s huge when we’re talking about anything visual in computers, whether it be software, web design, or pretty-much anything else. Most developers know exactly what I mean, but the common individual doesn’t understand why they “have to scroll” to see some content. It all has to do with screen resolution, which I’m about to demystify.

Posted by J. Austin Hughey Tue, 18 Mar 2008 02:40:00 GMT


Great Color Theory by Adobe

Adobe Kuler is a great tool for choosing color palettes for your identity and/or projects. I just stumbled onto this tonight, and am already loving it. Simply browsing the combinations other users and artists have created is a great exercise to find some inspiration for your next design. Highly recommended!

Posted by J. Austin Hughey Sat, 08 Mar 2008 00:23:00 GMT


Network Solutions Sued over Cybersquatting

It’s about time! The AP is reporting that a Florida man is suing Network Solutions and ICANN over cybersquatting domain names, and in fact, they’re seeking class-action lawsuit status.

Posted by J. Austin Hughey Thu, 28 Feb 2008 01:46:00 GMT


Creating Custom Rake Tasks in a Rails Application

Creating your own custom rake task is pretty easy. For example, maybe you’d like to write your own rake task to do some database management. Here is the basic structure on how to accomplish that.

Posted by J. Austin Hughey Fri, 22 Feb 2008 20:12:00 GMT


Deploying a Ruby on Rails Application on RHEL4/Plesk 8.2 with Mongrel, Apache and Pound

This is a collection of data and procedures that I’ve tested and researched over the past month to get a fully functional, load-balanced Mongrel cluster configuration running behind Apache and Pound, without breaking Plesk.

Posted by J. Austin Hughey Wed, 30 Jan 2008 15:55:00 GMT


AOL Drops Netscape (Permanently?), Yields to Microsoft, Endorses Firefox

As of February 1, 2008, AOL will no longer supply any support, or release any updates for its Netscape browser. Now in version 9, the long-standing product will essentially die in two weeks.

Posted by J. Austin Hughey Thu, 24 Jan 2008 18:19:00 GMT


Older posts: 1 2

© Copyright 2008 J. Austin Hughey.
aboutservicescase studiesarticlescontact