Rails Code

by James

[ror]
class ApplicationController < ActionController::Base

rescue_from(SomeError) { redirect_to error_page }

def index
@posts = Post.find(:all)
end
end
[/ror]