Ruby on Rails

Being a good little 404er

October 7th, 2007 at 06:47am Under Ruby on Rails

Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application

Timing out and retrying calls to third parties
When calling third parties you want to set them a sensible timeout, and you also might want to make a few attempts before giving up. Here’s a relatively succinct way to accomplish this in Ruby (3 attempts, each with a timeout of 5 seconds): 3.times do begin Timeout::timeout(5) do […]

Roll your own dispatch reaper script
If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]

JSON-P output with Rails
At the recent Web Directions 06 conference Cameron Adams and Sitepoint’s own Kevin Yank gave a talk on Mashups and APIs, with a mention of JSON-P. JSON-P is a method of wrapping the JSON output of your API calls to allow other developers to call your API from within their page, bypassing the browser security […]

The State of Web Development: PHP developers most likely to switch to Rails
Of all the graphs in The State of Web Development 2006/2007 report that SitePoint and Ektron published recently, the one that stood out the most to me was the one showing the platform currently being used by developers planning to start using Ruby on Rails: It wasn’t the fact that the graph shows PHP developers to […]

SitePoint s Ruby on Rails Book is now FREE
I’m very happy to announce that for the next 60 days our book Build Your Own Ruby on Rails Applications is FREE* in PDF Format (a $29.95 USD value). That s right Not an extract… Not a sample chapter The ENTIRE 447 pages of Patrick Lenz s incredible book is (for the next 60 days) free to […]

By admin Add comment

Roll your own dispatch reaper script

October 7th, 2007 at 06:47am Under Ruby on Rails

If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]

The State of Web Development: PHP developers most likely to switch to Rails
Of all the graphs in The State of Web Development 2006/2007 report that SitePoint and Ektron published recently, the one that stood out the most to me was the one showing the platform currently being used by developers planning to start using Ruby on Rails: It wasn’t the fact that the graph shows PHP developers to […]

JSON-P output with Rails
At the recent Web Directions 06 conference Cameron Adams and Sitepoint’s own Kevin Yank gave a talk on Mashups and APIs, with a mention of JSON-P. JSON-P is a method of wrapping the JSON output of your API calls to allow other developers to call your API from within their page, bypassing the browser security […]

Rails 1.2: No More Excuses!
In case you ve been living on another planet and missed it, this month saw the release of Rails 1.2, a major milestone for the framework. To coincide with this release, SitePoint this week announced the availability of our own Ruby on Rails book, Build Your Own Ruby On Rails Web Applications by Patrick Lenz. This is […]

Rails 1.1.5 security fix release
The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.

The effect of using Rails fragment caching
Rails provides a few caching techniques, one of which is a fragment cache. The fragment cache is a dead-easy way to cache bits of your view. After checking that your queries are doing sensible things, the next often slowest part of the Rails stack is view rendering, especially if there’s lots of URL generation involved. More […]

SitePoint s Ruby on Rails Book is now FREE
I’m very happy to announce that for the next 60 days our book Build Your Own Ruby on Rails Applications is FREE* in PDF Format (a $29.95 USD value). That s right Not an extract… Not a sample chapter The ENTIRE 447 pages of Patrick Lenz s incredible book is (for the next 60 days) free to […]

Timing out and retrying calls to third parties
When calling third parties you want to set them a sensible timeout, and you also might want to make a few attempts before giving up. Here’s a relatively succinct way to accomplish this in Ruby (3 attempts, each with a timeout of 5 seconds): 3.times do begin Timeout::timeout(5) do […]

Free PDF Giveaway Takes Down SitePoint
The SitePoint file server crashed overnight because of a massive influx of traffic due to our FREE download offer of “Build Your Own Ruby on Rails Web Applications”. In fact, we were getting over 200 simultaneous download requests when the server crashed! We’ve now setup a copy of the eBook on Amazon’s Elastic Computing Cloud […]

Being a good little 404er
Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application

By admin Add comment

Being a good little 404er

October 7th, 2007 at 06:47am Under Ruby on Rails

Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application

Roll your own dispatch reaper script
If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]

Rails 1.1.5 security fix release
The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.

By admin Add comment

Being a good little 404er

October 7th, 2007 at 06:47am Under Ruby on Rails

Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application
More…

I’m very happy to announce that for the next 60 days our book Build Your Own Ruby on Rails Applications is FREE* in PDF Format (a $29.95 USD value). That s right Not an extract… Not a sample chapter The ENTIRE 447 pages of Patrick Lenz s incredible book is (for the next 60 days) free to […]
More…

If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]
More…

Rails provides a few caching techniques, one of which is a fragment cache. The fragment cache is a dead-easy way to cache bits of your view. After checking that your queries are doing sensible things, the next often slowest part of the Rails stack is view rendering, especially if there’s lots of URL generation involved. More […]
More…

The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.
More…

At the recent Web Directions 06 conference Cameron Adams and Sitepoint’s own Kevin Yank gave a talk on Mashups and APIs, with a mention of JSON-P. JSON-P is a method of wrapping the JSON output of your API calls to allow other developers to call your API from within their page, bypassing the browser security […]
More…

By admin Add comment

Timing out and retrying calls to third parties

October 7th, 2007 at 06:47am Under Ruby on Rails

When calling third parties you want to set them a sensible timeout, and you also might want to make a few attempts before giving up. Here’s a relatively succinct way to accomplish this in Ruby (3 attempts, each with a timeout of 5 seconds): 3.times do begin Timeout::timeout(5) do […]
More…

If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]
More…

Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application
More…

Rails provides a few caching techniques, one of which is a fragment cache. The fragment cache is a dead-easy way to cache bits of your view. After checking that your queries are doing sensible things, the next often slowest part of the Rails stack is view rendering, especially if there’s lots of URL generation involved. More […]
More…

The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.
More…

I’m very happy to announce that for the next 60 days our book Build Your Own Ruby on Rails Applications is FREE* in PDF Format (a $29.95 USD value). That s right Not an extract… Not a sample chapter The ENTIRE 447 pages of Patrick Lenz s incredible book is (for the next 60 days) free to […]
More…

The SitePoint file server crashed overnight because of a massive influx of traffic due to our FREE download offer of “Build Your Own Ruby on Rails Web Applications”. In fact, we were getting over 200 simultaneous download requests when the server crashed! We’ve now setup a copy of the eBook on Amazon’s Elastic Computing Cloud […]
More…

Of all the graphs in The State of Web Development 2006/2007 report that SitePoint and Ektron published recently, the one that stood out the most to me was the one showing the platform currently being used by developers planning to start using Ruby on Rails: It wasn’t the fact that the graph shows PHP developers to […]
More…

By admin Add comment

Rails 1.1.5 security fix release

October 4th, 2007 at 01:04am Under Ruby on Rails

The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.

JSON-P output with Rails
At the recent Web Directions 06 conference Cameron Adams and Sitepoint’s own Kevin Yank gave a talk on Mashups and APIs, with a mention of JSON-P. JSON-P is a method of wrapping the JSON output of your API calls to allow other developers to call your API from within their page, bypassing the browser security […]

The effect of using Rails fragment caching
Rails provides a few caching techniques, one of which is a fragment cache. The fragment cache is a dead-easy way to cache bits of your view. After checking that your queries are doing sensible things, the next often slowest part of the Rails stack is view rendering, especially if there’s lots of URL generation involved. More […]

Being a good little 404er
Using ActiveRecord’s RecordNotFound exception to cleanly and consistently handle 404s throughout your application

Roll your own dispatch reaper script
If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]

SitePoint s Ruby on Rails Book is now FREE
I’m very happy to announce that for the next 60 days our book Build Your Own Ruby on Rails Applications is FREE* in PDF Format (a $29.95 USD value). That s right Not an extract… Not a sample chapter The ENTIRE 447 pages of Patrick Lenz s incredible book is (for the next 60 days) free to […]

Rails 1.2: No More Excuses!
In case you ve been living on another planet and missed it, this month saw the release of Rails 1.2, a major milestone for the framework. To coincide with this release, SitePoint this week announced the availability of our own Ruby on Rails book, Build Your Own Ruby On Rails Web Applications by Patrick Lenz. This is […]

Free PDF Giveaway Takes Down SitePoint
The SitePoint file server crashed overnight because of a massive influx of traffic due to our FREE download offer of “Build Your Own Ruby on Rails Web Applications”. In fact, we were getting over 200 simultaneous download requests when the server crashed! We’ve now setup a copy of the eBook on Amazon’s Elastic Computing Cloud […]

The State of Web Development: PHP developers most likely to switch to Rails
Of all the graphs in The State of Web Development 2006/2007 report that SitePoint and Ektron published recently, the one that stood out the most to me was the one showing the platform currently being used by developers planning to start using Ruby on Rails: It wasn’t the fact that the graph shows PHP developers to […]

Timing out and retrying calls to third parties
When calling third parties you want to set them a sensible timeout, and you also might want to make a few attempts before giving up. Here’s a relatively succinct way to accomplish this in Ruby (3 attempts, each with a timeout of 5 seconds): 3.times do begin Timeout::timeout(5) do […]

By admin Add comment

Timing out and retrying calls to third parties

October 4th, 2007 at 01:04am Under Ruby on Rails

When calling third parties you want to set them a sensible timeout, and you also might want to make a few attempts before giving up. Here’s a relatively succinct way to accomplish this in Ruby (3 attempts, each with a timeout of 5 seconds): 3.times do begin Timeout::timeout(5) do […]

Rails 1.2: No More Excuses!
In case you ve been living on another planet and missed it, this month saw the release of Rails 1.2, a major milestone for the framework. To coincide with this release, SitePoint this week announced the availability of our own Ruby on Rails book, Build Your Own Ruby On Rails Web Applications by Patrick Lenz. This is […]

Roll your own dispatch reaper script
If you haven’t used it before, the reaper script is useful for restarting your Rails application’s FastCGI dispatchers. It’s seems the reaper script in Edge rails now relies on the existance of PID files in the tmp/pids directory. If you want to replicate the old functionality, create your own ruby script and override the capistrano restart […]

Rails 1.1.5 security fix release
The Rails team have released another security update, 1.1.5. Update your code/environment.rb to point to the new gem version, or go grab 1.1.5 and put it in your application’s vendor directory.

The State of Web Development: PHP developers most likely to switch to Rails
Of all the graphs in The State of Web Development 2006/2007 report that SitePoint and Ektron published recently, the one that stood out the most to me was the one showing the platform currently being used by developers planning to start using Ruby on Rails: It wasn’t the fact that the graph shows PHP developers to […]

By admin Add comment

Previous Posts


Free Downloads City
Free Downloads

Categories

Recent Blog Posts

Blogroll

Posts by Month