Skip to content

Instantly share code, notes, and snippets.

set source_folder to choose folder with prompt "Please select a folder:"
tell application "Finder"
set numberOfFiles to count of (files in folder source_folder whose size is 0)
end tell
desc "A Task watched by Exceptional"
task :do_something => :environment do
Exceptional.rescue('Error doing something') do
# do something
end
end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="http://www.contrast.ie/blog/wp-content/uploads/2009/09/spidermonkey-example.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="http://www.contrast.ie/blog/wp-content/themes/sandbox/assets/css/screen/style.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript">
var waitForMe = {
lastClick: null,
listener : function(e) {
e.stopPropagation();
p. 1. Create a new rails application
p((. left ident 2em<pre><code>$ rails Blog</code></pre>
p. 2. Add some functionality to the new app
<code>$ ./script/generate scaffold Post title:string body:text</code>
p. 3. Test the new application to make sure its running ok

Installation

The Exceptional Rails plugin will work alongside any other exception management solution. Though it would be a good idea to remove them if you decide to use Exceptional to ensure the best possible performance.

You will need an account at getexceptional.com

Rails < 2.1
  1. Install : From the root folder of your Rails application, run the following command to download and install it:

cd vendor/plugins &&\