On Aug 9, 7:21 pm, David Chelimsky wrote:
> It's up to you to handle the error in the controller. Something like this in
> ApplicationController:
>
> rescue_from ActiveRecord::RecordNotFound do
> render '/404.html', :layout => false, :status => :not_found
> end
Actually, I believe this i
On Aug 8, 2010, at 2:53 PM, christofferklang wrote:
> Hello,
> I'm new to rails and I'm trying to wrap my heads around how to spec
> controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
>
> The problem I've run into is when I want to test that my controllers respond
> with a 404
Hello,
I'm new to rails and I'm trying to wrap my heads around how to spec
controllers using RSpec (using rails 3rc1 and rspec 2.0.0.beta.19).
The problem I've run into is when I want to test that my controllers respond
with a 404 for unfound records.
Whenever I run the spec, the ActiveRecor