search for: render_500

Displaying 3 results from an estimated 3 matches for "render_500".

Did you mean: render_404
2006 Mar 22
1
undefined method `respond_to'' when using Exception Notifier Plugin
I''m trying to use the exception notifier plugin and I''m getting this error message: NoMethodError (undefined method `respond_to'' for #<Adm::PeriodController:0xb74c9804>): /vendor/plugins/exception_notification/lib/exception_notifiable.rb:64:in `render_500'' /vendor/plugins/exception_notification/lib/exception_notifiable.rb:76:in `rescue_action_in_public'' Any suggestions? I suspect there is something missing. This project is stored in cvs and it seems like it got confused by this plugin some how. Oh. This is the message I see i...
2007 May 24
3
Exception Notification Plugin Question
...on/rhtml view? But if I do this would this be making the design brittle, i.e. what happens if there is a Rails internal issue itself which could mean it''s not possible for the error action/rhtml view to work? .................................................................... def render_500 respond_to do |type| type.html { render :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error" } . . .................................................................... Tks Greg --~--~---------~--~----~------------~-------~--...
2008 Mar 08
9
Validation error handling on related models
I have 2 models, entity and client. Entity has_one client and client belongs_to entity. Entity has attributes name and legal_name. Entity also has an unique index on (lower(name)). The pKey for both is the conventional Rails id. Client has a fKey constraint on entity_id and is indexed in entity_id. In controllers/clients_controller.rb I have: # GET /clients/new # GET /clients/new.xml