similar to: Monkey patching a gem's controller method

Displaying 20 results from an estimated 100 matches similar to: "Monkey patching a gem's controller method"

2011 Feb 14
0
Devise is causing the [The change you wanted was rejected.] Error...
I am using the custom made Devise controller. I moved from PHP to Rails that, old users password are stored in Devise:user table in form of "devise_encryption(oldencryption(password))" If an user login, and app finds out that this user''s password is in form of "devise_encryption(oldencryption(password))", I then change it in to a form of
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but couldn''t find any answer, so iy may not be related to Devise , so I debugged it .. . class Users::RegistrationsController < Devise::RegistrationsController .. # POST /resource/sign_up def create build_resource if resource.save if resource.active? set_flash_message :notice, :signed_up
2013 Jul 04
3
Rspec devise, testing extended RegistrationController action destroy
Hi everyone, I have devise 1.5.4 working with rails 3.0.20 and ruby 1.8.7 . I have extended the destroy action from the RegistrationController, to soft delete users instead of really deleting them from the database. def destroy # raise resouce.inspect # this is just to see if the test hits the action resource.soft_delete set_flash_message :notice, :destroyed sign_out resource
2011 Jan 08
2
Wine-1.3.11 will not compile for me
http://james-camerons-avatar.wikia.com Dear All, I've been using Wine happily on my Linux server for quite some years now. Even wine-1.3.9 has compiled without any issues whatsoever. But ever since yesterday, when I tried to compile the latest version 1.3.11 I'm stuck and don't know how to help myself. Please give me some ideas. As usual, I started compiling wine by
2010 Sep 20
1
Should a Gem's dependencies be listed in the parent app's Gemfile?
I am working on a Gem that has several Gem dependencies of its own. The Gem''s .gemspec looks good (I think) and when "bundle install" is called from the parent app, it lists that it is indeed "Using" the Gem''s required Gems. I''ll refrain from an Inception analogy here ;) When I fire up the app and make a request, I get "uninitialized constant
2012 Feb 01
6
Does Devise make use of a "status" method? Weird bug.
So I''ve inherited a legacy application and I''m trying to work around the edges as I put an admin tool interface on top of the existing code base. I install Devise for user authentication, since I''ve used it in the past. I change none of the default code. And yet, on successful sign in, I get an error: Render and/or redirect were called multiple times in this action.
2007 Oct 11
0
Kernel Update and Ultra Monkey
Hi, We currently have an CentOS 4.5 running Ultra Monkey box serving web requests to two real servers. Info as below : ipvsadm-1.24-6 heartbeat-2.1.2-3.el4.centos CentOS 4.5(kernel-smp-2.6.9-55.0.6.EL) All was working fine this morning until I upgraded our OS and patched the kernel to kernel-smp-2.6.9-55.0.9.EL via YUM(CESA-2007:0937). After that users started complaining that they were
2009 Jul 18
1
The secret of monkey island (steam)
Has anyone tried this and got it working with wine? Whenever i start it, I get the diaglogue box saying its starting then it disappears from my screen
2001 Feb 11
0
HowTo run Monkey Island 4 with wine
Hi, because nobody was able to tell me why I wasn't able to run Monkey Island in wine I now tell you what i did to get it running: I have installed wine with the transgaming directx patch (which is not necessary for wine). Monkey Island defaulted to DirectX when I started it, but the Transgaming Patch is yet not good enough to run MI4. To get it running you have to to the following:
2010 Sep 05
3
Re: Problem when trying to play Monkey Island 2 Special Edition
MI2 starts ok but when I click new game it just kinda freezes, though the music keeps playing. Any ideas? last line is: wine: Unhandled page fault on read access to 0x7f0c3400 at address 0x68615040 (thread 0034), starting debugger... Could you post your .wine/user.reg ? the DllOverrides section?
2007 Mar 19
1
Curse of Monkey Island doesn't work with wine 0.9.24
I installed the game like it is described in the WineHQ application database. The installation worked without problems but running the game produced the following error message: Cannot create DirectSound object (-2147467259) I got around this by switching off OSS sound and using ALSA instead, but know I have the same problem that Erich Hoover mentioned in the AppDB. The music starts to play but
2009 Jul 22
1
Tales of Monkey Island
Hello everyone... Although it says in the AppDB that this runs flawlessly, I haven't been able to run it... Installation goes fine and I also add the missing DirectX dll to the system32 dir. But, after running the game there is only the white window (although I hear the sound, so I guess it's not frozen). These messages appear in the terminal: Code:
2010 Sep 08
1
secret of monkey island 2 special edition
Hi I am trying to run the steam version of secret of monkey island 2 LeChuck's revenge through wine. I run opensuse 11.3 with wine 1.3.2. I have an nvidia 7900 GS card and I use the nvidia drivers ( version 256.53 ) This is what I am getting : ======================================== CellID: Fetching server list from CSDS. . . fixme:process:SetProcessShutdownParameters (00000100, 00000000):
2009 Jun 05
1
escape from monkey island direct3D problem
hi there, im really new to linux and wine (about 2 days new now) and am having a few problems playing escape from monkey island everytime i load it up using the direct3D option i get a message saying unable to initialize hardware, if i open it using the openGL option it works but in a tiny screen. then i discovered the same result happens when i emulate a desktop using wine's configuration
2008 Jun 27
1
No mouse in Monkey island 4
Escape from monkey island is reported to work in the appdb, but on my system I can't get the mouse working. There is no cursor at all. I'm not using Compiz when using wine. Wine version: 1.0 I also tried a patched version of wine and the mouse still does not work in MI4. Any solution? Perhaps editing xorg? Thanks in advance...
2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
I''ve often felt the need including Rails'' view helpers within my controllers, if only for some simple things like formatting my flash notices with text helpers or html escaping. I loved this suggestion, which helps by not cluttering the namespace of controllers: http://snippets.dzone.com/posts/show/1799 But I wanted to generalize this a little to automatically include whatever
2010 Jul 30
1
[PATCH 1/2] Monkey-patch mongrel to fix rails 2.3.5 incompatibility
Signed-off-by: Nicolas Ochem <nicolas.ochem at alcatel-lucent.com> --- src/config/initializers/mongrel_patch.rb | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 src/config/initializers/mongrel_patch.rb diff --git a/src/config/initializers/mongrel_patch.rb b/src/config/initializers/mongrel_patch.rb new file mode 100644 index 0000000..ae2bcf4 ---
2005 Jun 14
0
Ultra Monkey 3 and Centos 4
Ultra Monkey 3 has been released and the release notes say it's compatible with RHEL3. IS anyone running it on a CentOS-4 machine? --Ajay
2004 Sep 10
1
Monkey Audio Open Source?
--- Mark Powell <M.S.Powell@salford.ac.uk> wrote: > Thought this may be of interest to this list: > > http://66.96.216.160/cgi-bin/YaBB.pl?board=general&action=display&num=995374789 > > Down the bottom the author of Monkey's Audio claims he's going Open > Source. that would be great... the list of usable OS audio codecs is pretty small and more sharing of
2009 Sep 09
1
Monkey patching +.POSIXt
Hi all, This summer I've been working with a grad student to bring more of the date time classes from JODA (http://joda-time.sourceforge.net/) into R. To make these work seamlessly with existing date time objects, we need to patch +.POSIXt. (The ruby community uses the term monkey-patching for this sort of ill-advised, by sometimes necessary, internal hackery, hence the title.) The problem is