Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] [ruby on rails]: sending back HTTP status codes with XHR
- Date: Sat, 7 Jul 2007 16:04:39 +0900
- From: Mattia Dongili <malattia@example.com>
- Subject: [tlug] [ruby on rails]: sending back HTTP status codes with XHR
- User-agent: Mutt/1.5.13 (2006-08-11)
Hi, so it looks like I'm in the process of learning some RoR. And obviously I'm facing problems from time to time, one of which is: using the link_to_remote helper there's that nice feature that allows you to update different DOM objects depending on the outcome of the server response, so link_to_remote h(truncate(message_item.subject, 60)), :url => { :action => "read_message", :uid => message_item.uid .... }, :update => { :success => "content", :failure => "error" }, :loading => 'loading_show()', :loaded => 'loading_hide()' Nice, but how the hell I'm supposed to send back an HTTP 500? I tried overriding the rescue_action in the controller (which I supposed would automagically return 5xx codes) to no avail. Hints? -- mattia :wq!
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Switching from UIM to SCIM
- Next by Date: Re: [tlug] Switching from UIM to SCIM
- Previous by thread: Re: [tlug] Switching from UIM to SCIM
- Next by thread: [tlug] Hardware Analysis
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links