
Looks alright doesn’t it?
Problem is, there are *absolutely* no clickable links on that error message.
Go ahead … try it.
How to fix it?
You need a link back to the home page at least, suggesting other things the user might want to check out is not a bad idea either.
And for style points, a simple text box to get information about what caused the error to happen, will alert you to the problem so you don’t lose prospective customers.
April 13th, 2009
Why don’t you allow users just text their current location to another iphone user (instead of having to type out the address everytime)?
Then, when it shows up on the iphone, they can click it to go directly to the location on google maps?
Sounds easy enough for you guys to do in a weekend
April 8th, 2009
What if, instead of doing things that annoy their customers, like charging for bandwidth …
cable companies decided to do innovative things like add bigger hard drives for their DVR devices, or allow you email episodes you’d recorded to your friends (who also had DVR)?
April 8th, 2009
This one is simple, but I couldn’t find a decent google result for it.
Before you uninstall the plugin, you have to get its name … go to the vendors directory in your app folder and get the name of the folder

In this case the name of the plugin is “active_scaffold”
Go to the directory of the app you want the plugin removed from and type in
ruby script/plugin remove active_scaffold
or if you’re on a Linux box
./script/plugin remove active scaffold
February 17th, 2009
Usually in Rails, if you specify a before_filter in the base controller ‘ApplicationController’ (in application.rb), every other controller in that app inherits that filter, so that even if you specify a before_filter in another controller … the filter in application.rb always runs
Example:
class ApplicationController < ActionController::Base
before_filter :check_login
end
class UploadsController < ApplicationController
before_filter :get_data
end
The :check_login method is always run even though UploadsController specifies another before_filter.
(You can stop this behavior by specifying a skip_before_filter :check_login in the Uploads Controller)
However if you take this mindset with you to cakephp (more...)
February 16th, 2009
Getting a dropdown of items a model hasMany of, should be very easy to do, but I always forget and it takes me far longer to find it than it should.
For this brief example, we’re assuming that we have an Uploads model and a FileCategory model.
Uploads belongs to FileCategory and File Category has many Uploads … get it?
class Upload extends AppModel {
var $belongsTo = array('Client', 'FileCategory');
}
class FileCategory extends AppModel {
var $hasMany = array('Upload');
}
All you need to do to is get the items for the dropdown with a find(’list’) command and then (more…)
February 14th, 2009
This one had me going for a bit, but if you name a controller the same as a file that is in the “webroot” folder, and try to navigate to it, cake will just show you a listing of all the files in the same named directory.
As an example, the “files” folder comes with the cakephp installation right?
Not knowing that, I tried to build a files controller and navigate to it.

but it takes me instead to (more…)
February 13th, 2009
If you’re using the excellent jquery json plugin you might run into problems trying to parse json returned from the php function json_encode.
Specifically, when you try to parse the returned json using $.evalJSON you get the javascript error
missing ] after element list
I also had this same problem with the cakephp json component (which I decided to use instead since it would be more portable across php versions than the php5.2+ only json_encode).
The simple fix is this.
Add slashes to your output and surround it with double quotes like this …
$status = json_encode($status);
echo '"'.addslashes($status).'"';
I figured this one out, by examining rails json output that worked just fine with the jquery json plugin.
February 8th, 2009
I ran into this problem trying to figure out how to make sure that styling alternate rows in a table did not become messed up when tablesorter actually sorted the table.
In googling around I figured out that you had to use the zebra widget call in your initial tablesorter contructor. But no one said exactly how to get the zebra widget to apply the alternate row styling.
The simple answer is (more…)
December 10th, 2008
I was trying to find out how the NY Giants did last night, so I could incorporate it into a nice little jibe I was going to hurl at a friend of mine, so I went in and typed “NY Giants” … into the search box, to start the ever familiar process of clicking on links and backing up until I found what I wanted.
Guess what came up?

Its like they read my mind!
Funny, but it illustrates *exactly* why Google is kicking everybody’s ass at search.
They write software that anticipates the needs of its users.
You should be asking yourself if your software, business, employees or personal service does the same.
December 8th, 2008
New release announced
Global queuing
We recently announced that we’ve developed a feature called global queuing. This feature was requested by 37signals. When global queuing is on, Phusion Passenger will load balance all incoming requests into the first available backend process. This is especially useful if you have long-running requests, e.g. requests that perform heavy calculations and can take several seconds to finish.
Fixed compatibility with the latest Rake version and RubyGems version
When compiling Phusion Passenger using the latest Rake, compilation commands are not shown while various warnings are being shown. This has been fixed. Various RubyGems deprecation warnings have also been fixed.
Running background programs from within the Rails app won’t freeze the request
In previous versions of Phusion Passenger, if one executes
system(”sleep 10 &”)
from within the Rails app, then Phusion Passenger won’t finish the request until 10 seconds have gone by. In other words, Phusion Passenger would wait until the background program has finished. This issue is caused by file descriptor leaks, and has been fixed.
Fixed Mac OS X crash
A Mac OS X related crash has been fixed.
Various bug fixes
The title says it all. If you experienced any kind of problems with previous releases, please try this release as the bug may have been fixed.
December 2nd, 2008
I’m a big fan of the Netbeans IDE, because I love the support it provides for Ruby on Rails.
It means that I upgrade my IDE to the latest release (Milestones, Betas etc) as soon as it comes out, but it also means that with every upgrade, I have to physically go and set every … single … option … again.
Sounds painful doesn’t it?
It is.
Luckily , I found a blog post that describes how to solve this problem and import your netbeans settings from version to version.
This is something that needs to be fixed in Netbeans … that and including a word wrap option … and cakephp support … oops … getting carried away there
November 30th, 2008
I’m writing this post because there doesn’t seem to be much instruction about how to search effectively from the url bar or omni-bar as the google folks call it.
The way its supposed to work is that if you type in a keyword for the search engine then the search query and hit enter, the search will execute using the search engine you specified.
so if you type
“amazon.com Art of Rails”
(note the space between amazon.com and the query)
into the omni bar then hit enter, your search will execute on Amazon.com.
To know that you’re doing it right, after typing in the keyword (amazon.com) and space, the url should look something like this
(more…)
September 11th, 2008
Yesterday I awoke to news about Google Chrome … EVERYWHERE.
And being the non-conformist I like to think I am (like everybody else in the universe), I wasn’t even going to give it a look until I stumbled onto this brilliant marketing tool that they had put together. Its a 40 page comic book walking you through the thought process behind why Google Chrome came about, and how it is different from everything on the market already.
What makes this puppy different?
The main philosophical difference between this browser and others is that fact that, instead of running the browser in one memory space, each tab in the browser has its own process.
(more…)
September 3rd, 2008
Next Posts
Previous Posts