Displaying 4 results from an estimated 4 matches for "errorpag".
Did you mean:
errorpage
2008 Jan 08
0
How do I call the exception_notifier from my own rescue_action_in_public ?
...save the variables exception and request and then simply
redefine them so they appear as when the error occurred.
My code goes something like this:
#controller/application.rb
def rescue_action_in_public(exception)
@saved_exception = exception
@saved_request = request
render :partial => "errorpage"
end
After pushing the form in errorpage i go to this:
#controller/application.rb
def submit_error()
request = params[:saved_request]
ExceptionNotifiable::rescue_action_in_public(params[:saved_exception])
end
However, I keep getting errors like
undefined method `rescue_action_in_p...
2006 Jul 21
1
rjs template modifying form_remote_tag
I would like to build a form which uses ajax on the first request, but
on a subsequent request uses the regular form_tag. The reason for
doing this is that I need a file upload in the second request, and so
I can''t use AJAX. I''ve tried using an rjs template to modify the
form_remote_tag''s id (using page.replace ''form_tag_id'', ...), but the
request
2007 Apr 09
0
How to render my own error pages correctly?
...."
Therefore I defined:
class MyException < Exception
end
Furthermore I catch that in application.rb:
def rescue_action_in_public(exception)
case exception
when MyException
logger.error("404 displayed")
render :file =>
"#{RAILS_ROOT}/public/errorpages/404_myerror.html",
:status => "404", :layout => false
So far, so good. I get my page displayed. BUT everytime my application
layout (application.rhtml) gets rendered too! Look, I''ve set ":layout =>
false"!
The problem is, that I ca...
2005 Dec 22
3
bug report of xm list and xm vcpu-list
Hi,
Xm list and xm vcpu-list show wrong DomID(name).
Under this situation,
# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 512 1 r----- 1064.6
test1 13 64 1 r----- 83879.7
# xm list 1 13
Error: Domain ''1'' not found when running ''xm list''
# xm list