similar to: Redirecting user on object.save failures

Displaying 20 results from an estimated 5000 matches similar to: "Redirecting user on object.save failures"

2011 Jun 05
1
Cancan redirect back at AccessDenied
Hello I have a rails 3 app and I am trying to implement the redirect back action at access denied for cancan. If I try this in my application_controller: rescue_from CanCan::AccessDenied do |exception| redirect_to :back end It gives the following error: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure
2007 Feb 22
4
Modifying Apache Conf To Block Leachers
Howdy, I''m using Apache 2.2 + Mongrel with great success, using the sample configs from the Mongrel site. We have some MP3s on the site and recently someone has been stealing them and basically leaching them from the site, linking to them from an off-site location. I''ve been trying to modify my Apache conf to check the referrer and adjust accordingly as below but no
2006 Aug 05
3
Apache 2.2 + Mod Proxy Balancer + Mongrel - Hot Linking Protection?
Hey guys, Ok, basically I coded a ruby on rails CMS to manage a bunch of media files. I am finding that a lot of people are "hot linking" to these media files and would like to prevent this to save bandwidth. Usually in the past, it hasn''t been a problem, I would add something like the following to my .htaccess file RewriteEngine on RewriteCond %{HTTP_REFERER} !^$
2009 Aug 27
2
Setting @request.env["HTTP_REFERER"] in an integration test
Hi. I would like to set @request.env["HTTP_REFERER"] in an integration test, but due to its nature, I would naturally set this value to the previousle request url. How do I do that. Thanks. Jarl
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a page with a serialized attribute: ActiveRecord::SerializationTypeMismatch (answers_container was supposed to be a Array, but was a NilClass): /vendor/rails/activerecord/lib/active_record/base.rb:1964:in `unserialize_attribute'' In development, it works fine. In fact, if I set to false config.cache_classes in
2007 Feb 22
1
HTTP_REFERER support?
Hello, we want to read the referer URL from the HTTP headers, in order to be able to track where someone is coming from, in a Rails application. As I can see in the source, Mongrel doesn''t even parse the HTTP_REFERER field from HTTP requests. This would make a useful feature, I guess. Apart from that, Mongrel is (IMHO) simply the best solution for deploying Rails - keep on going!
2017 Jun 03
0
cygwin1.dll problems when installing packages from source
On 03/06/2017 6:31 AM, Vivek Sutradhara wrote: > Hi all, > I am having some problems in updating some packages from source. I start > with : > install.packages("Boom",lib="C:/RownLib",type="source") > > I get the following error message : Do you have multiple copies of cygwin1.dll? Duncan Murdoch > > * installing *source* package
2017 Jun 03
3
cygwin1.dll problems when installing packages from source
Hi all, I am having some problems in updating some packages from source. I start with : install.packages("Boom",lib="C:/RownLib",type="source") I get the following error message : * installing *source* package 'Boom' ... ** package 'Boom' successfully unpacked and MD5 sums checked ** libs *** arch - i386 c:/Rtools/mingw_32/bin/g++ -std=gnu++11
2017 Jun 03
2
cygwin1.dll problems when installing packages from source
Hi, As far as I can see, no. On checking, I have confirmed that the only location of cygwin1.dll is : C:\Rtools\bin Thanks Vivek 2017-06-03 12:57 GMT+02:00 Duncan Murdoch <murdoch.duncan at gmail.com>: > On 03/06/2017 6:31 AM, Vivek Sutradhara wrote: > >> Hi all, >> I am having some problems in updating some packages from source. I start >> with : >>
2017 Jun 03
0
cygwin1.dll problems when installing packages from source
On 03/06/2017 7:00 AM, Vivek Sutradhara wrote: > Hi, > As far as I can see, no. > > On checking, I have confirmed that the only location of > cygwin1.dll is : > C:\Rtools\bin I would re-install Rtools, and make sure C:\Rtools\bin appears first in your PATH. Duncan Murdoch > > Thanks > Vivek > > 2017-06-03 12:57 GMT+02:00 Duncan Murdoch <murdoch.duncan at
2017 Mar 22
2
GSoC 2017: Letor Click Data Mining
Hi James, > Isn't this from the query template, ie from the main web page of search > results? (It might make sense from opensearch as well, though.) Yes, you are right; it is the query template. The reason I said opensearch template is that I haven't quite read all sections of the Omega docs and I'm still in the process. Thanks for pointing that out. I'm aiming to cover
2023 Jan 30
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
/Hello. SUMMARY: $ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv()" Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' $ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv('BOOM')" [1] "\xff" BACKGROUND: I launch R through an Son of Grid Engine (SGE) scheduler, where the R
2023 Jan 31
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
Tomas, I think you're not addressing the actual issue which is a clear regression in Sys.getenv() [because it used to work and still works for single env var, but not a list] and the cryptic error due to that regression (caused by changes in R-devel). So in either case, Sys.getenv needs fixing (i.e., this should really go to the bugzilla). Its behavior is currently inconsistent. The quoted
2006 Jan 30
10
How do I get the the full URL of an incoming request
Hey, Is is possible to get the full URL (''http://www.sender-domain.com/links/list.html'') from where a user was sent to my site (www.my-domain.com/controller/action) e.g. by clicking on a link? (I read about something called a ''request'' object, I don''t know what it is or does, is that what I''m looking for? I''m very new to Rails
2023 Jan 31
1
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
> On 31 Jan 2023, at 12:51 , Tomas Kalibera <tomas.kalibera at gmail.com> wrote: > > > On 1/31/23 11:50, Martin Maechler wrote: <snippage> >> hmm.., that's a pity; I had hoped it was a pragmatic and valid strategy, >> but of course you are right that type stability is really a >> valid goal.... >> >> In general, what about behaving close
2009 Nov 19
0
migrating NT4 PDC to samba3. netrpc vampire errors
Hi, I am in the processof migrating a a NT4 PDC over to a samba3 server. I am following this guide:http://vermeulen.ca/linux-windows-nt.html I am able to join the Domain but when I go to net rpc vampire I get the following errors: Not all my users get transfered: [root at HERCULES ~]# net rpc vampire -S GENOME -w HERCULES -U administrator Fetching (to passdb) DOMAIN database Creating unix
2001 Jan 08
1
New MP3 codec from FhG/Thomson
Taken from http://www.twice.com/html/pagebeta.cfm?InputKey=2853 ------------------------------------------------------------------------- Thomson, Fraunhofer Developing Enhanced MP3 Codec Called mp3PRO Jan. 7, 2001 By Joseph Palenchar Las Vegas -- Thomson and the Fraunhofer Institute, the co-developers of MP3, are working with a third company to develop an improved MP3 codec intended to deliver
2010 Jan 04
3
[LLVMdev] Tail Call Optimisation
On 04/01/2010, at 3:01 PM, Jon Harrop wrote: > On Monday 04 January 2010 01:12:55 Simon Harris wrote: >> I'm investigating "improving" the TCO facilities in LLVM to provide for >> "hard" tail calls. Specifically, this would involve extending the existing >> implementation to discard the stack frame for the caller before executing >> the callee. I
2011 Feb 23
4
We can not start up icecast
Hi Icecast, THANK YOU FOR YOUR ATTENTION...WE TRIED A FEW THINGS AND BASICALLY THINGS RESULTED IN THE SAME ERROR... Server startup failed. Exiting WE SCRUBBED THE ICECAST.XML FILE AND VALIDATED IT AND NO ERROR WERE FOUND...WE THANK YOU FOR TAKING THE TIME TO LOOK OVER THE XML CONFIG FILE INCLUDED IN THE ATTACHMENT AND SEE IF MAYBE OUR ISSUES FOR NOT BEING ABLE TO START THE ICECAST SERVER
2006 Apr 27
2
How to override pagination_links method
I intend to override pagination_links method. I added following lines of code in application_helper.rb module ActionView module Helpers def pagination_links(paginator, options={}, html_options={}) raise("boom!!") end end end But my code is not executing my code. The view is still using the method pagination_links from rails. What''s the correct way to override