similar to: Truncated development log when using rescue_from

Displaying 20 results from an estimated 600 matches similar to: "Truncated development log when using rescue_from"

2008 Oct 24
1
rescue_from and assert_raise
Since commit 5e3517ea7b9fbd460f772bffc9212d882011f2bc, rescue_from is now being handled in tests. I''ve been using rescue_from to handle custom exceptions and testing that those exceptions are raised in functional tests with assert_raise. This no longer works now. What''s the proper way to test this now? --~--~---------~--~----~------------~-------~--~----~ You received this
2009 Feb 10
2
rescue_from for NoMethodError
Hi everyone, I was just trying to catch some exceptions in my app, for "Record Not Found" I used this in my application.rb file rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found rescue_from ActionController::NoMethodError, :with => :show_error private def record_not_found render :text => "404 Not Found", :status =>
2008 Apr 30
7
rescue_from issue with AWS - uninitialized constant
The new rescue_from in edge rails seems to conflict with ActionWebService, which I need for various other purposes. When I define, for example (with AWS gem installed): <b>rescue_from ActionController::RoutingError, :with => :page_not_found</b> I get the exception: <b>uninitialized constant ActionWebService::Dispatcher::ActionController::Base</b> OK, so AWS
2008 Aug 21
1
rescue_from failing to rescue [from]
Having some weird failures of rescue_from in all my specs. They still rescue in actual usage, just not in my specs. Made a pastie of the code: http://pastie.org/257399 This is with latest [as of 1:00 PM Eastern time zone] rspec/rspec-rails/edge. Thanks in advance for any replies on this. RSL -- Posted via http://www.ruby-forum.com/.
2008 Aug 01
1
rescue_from ActionController::MethodNotAllowed
Hello, I''m having some trouble handing ActionController::MethodNotAllowed errors. Basically, the following is defined in my controllers, but obviously I''m missing something. Thanks in advance for any light you can shed. - - - - - - - - - - - - - - - - - - - - class UsersController < ApplicationController rescue_from ActionController::MethodNotAllowed, :with =>
2007 Oct 21
7
exact exceptions in rescue_from
rescue_from stores exception class names in a hash table, and associates them with handlers. When an exception is raised there''s a name lookup, and if an entry is found its handler is invoked. In particular rescue_from does not emulate Ruby''s rescue semantics with regard to inheritance. Which is the rationale? Don''t you think taking is_a? and declaration order
2007 Dec 22
8
Rails 2.0 rescue_from
I am trying to use the new Rails 2.0 macro : rescue_from class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :deny_access ... def show @post = Post.find_by_id(params[:id]) raise ActiveRecord::RecordNotFound if @post.nil? #illegal access ..... end def deny_access respond_to do |format| format.html end end but the
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ... Why doesn''t rescue_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details
2011 Jan 05
2
DTMF-troubles with Snom
Hello list, I'm having DTMF-troubles with a Snom phone. I want to know if it's the Snom or Asterisk that makes the trouble. I'm playing a prompt, then make a choice for "2" : [Jan 5 17:06:38] VERBOSE[29172] file.c: [Jan 5 17:06:38] -- <SIP/test1-00000701> Playing '/var/lib/asterisk/sounds/vprompts/109001/prompt5040.slin' (language 'nl') [Jan
2013 Nov 20
1
Failed to access the console after starting the lxc container
Hello, I am starting the system container without "/" directory So that it can share the host /bin /sbin /lib and /lib64 and i have sepeartely mounted /var, /etc and /usr directory for the container Below is xml file <domain type='lxc'> <name>test6</name> <memory>102400</memory> <os> <type>exe</type>
2010 Jul 12
4
Remote-Party-ID party=called
Hello list, using Asterisk 1.4.30. I want to set the SIP-header Remote-Party-ID to display the name of the calling party on my phone in stead of the number. This is the dialplan : exten => 10,1,NoOp() exten => 10,n,SIPAddHeader(Remote-Party-ID: "eric" <sip:10 at 192.168.1.150>;party=called ) exten => 10,n,Dial(SIP/test2) This is what the CLI shows : /[Jul 12
2007 May 14
0
Fwd: permissions on samba share change automatically
I already sent the mail below to linux-cifs-client, but got no reaction there. Sorry if this is considered crossposting. I have a problem executing certain actions on a share, which is shared by a windows XP Home machine and mounted by a linux machine First of all some information: in /etc/fstab Quote: //Venus/D_ /mnt/D cifs
2007 Apr 18
4
[Bridge] [PATCH/RFC] Let {ip, arp}tables "see" bridged VLAN tagged {I, AR}P packets
Hi all, The patch below does four trivial changes and one big change Trivial changes, these are all in br_netfilter.c: - check ar_pln==4 when giving bridged ARP packets to arptables - delete unnecessary if in br_nf_local_in - add more logging for the "Argh" message - add some brag-comments in the file head comment Big change: let {ip,arp}tables see VLAN tagged {I,AR}P packets. This
2014 May 28
0
[Bug 949] New: icmpv6 id option doesn't work
https://bugzilla.netfilter.org/show_bug.cgi?id=949 Summary: icmpv6 id option doesn't work Product: nftables Version: unspecified Platform: x86_64 OS/Version: Debian GNU/Linux Status: NEW Severity: enhancement Priority: P5 Component: nft AssignedTo: pablo at netfilter.org ReportedBy:
2024 Jan 06
8
[Bug 1730] New: nft does not handle IPv6 addresses with embedded IPv4 addresses
https://bugzilla.netfilter.org/show_bug.cgi?id=1730 Bug ID: 1730 Summary: nft does not handle IPv6 addresses with embedded IPv4 addresses Product: nftables Version: 1.0.x Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: nft
2007 May 21
1
permissions on samba share change automatically
On the problem summarized below, I have some additional information, and what I believe is a bug in the cifs client. Can anyone advise on how/where to file the bug report ? I found out what is the probable cause of the problem above, but not what the solution is. I tried the above mentioned commands, but using different umasks on the client. I saw that when a directory is created, the
2018 Feb 12
1
Pattern not recognized as reduction
Reduction Not Captured By LLVM CODE_1 ------------------------------------------------------------ ------------------------------------------------------------ -------------------- #include <stdio.h> int main() { int sum[1000]={1,2,3,4}; for (int i=1;i<1000;i++) { sum[0] +=sum[i-1]; } }
2000 Aug 16
1
SMBFS: NLS support for kernel 2.4.0-test6
Hello. It's a thing which all Russia and, I think, many other countries need. Patch allow you to specify smb server and local IO charsets. Two new options added to smbmount: iocharset=<charset> and servercharset=<charset>. They'll passed to kernel and proc.c module makes NLS conversion if need. Patches in attachment. -------------- next part -------------- A non-text
2007 Dec 30
0
Exception not caught while in view
I''m running Rails 2.0.2. My controller is subclassed from RetainController (which is subclassed from ApplicationController). Retain Controller has: rescue_from Retain::LogonFailed, :with => :logon_failed rescue_from Retain::FailedMarkedTrue, :with => :failed_marked_true It works if the exception occurs before I start processing the view. If I get the exception while in
2015 Apr 29
0
Re: non failover equivalent to "virsh migrate --copy-storage-all"
On 04/29/2015 09:47 AM, Andreas Buschmann wrote: > Hello, > > I have two servers where I can push VMs from one to the other by issuing > the command > > virsh migrate --live --persistent --copy-storage-all --verbose \ > test6 qemu+ssh://kvmhost2/system > > on kvmhost1. I can get the VM back by issuing the equivalent command on > kvmhost2: > > virsh