Changeset 3900
- Timestamp:
- 03/16/06 17:48:31 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/exception_notification/lib/exception_notifiable.rb
r3570 r3900 55 55 56 56 def render_404 57 render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" 57 respond_to do |type| 58 type.html { render :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found" } 59 type.all { render :nothing => true, :status => "404 Not Found" } 60 end 58 61 end 59 62 60 63 def render_500 61 render :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error" 64 respond_to do |type| 65 type.html { render :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error" } 66 type.all { render :nothing => true, :status => "500 Error" } 67 end 62 68 end 63 69