similar to: Injecting actions into controllers

Displaying 20 results from an estimated 120 matches similar to: "Injecting actions into controllers"

2007 Feb 28
1
Any reason not to further restrict the action names hidden by default?
A couple of years ago, no objections were voiced to a proposed patch of ActionController that would allow controllers to have methods with the same names as Object''s methods (currently, ActionController::Base.hidden_actions, as called by action_methods, prevents this). Such a change is of interest to me since I just blew some time figuring out why rails wasn''t finding a
2008 Nov 23
1
v1.2.alpha4 released
http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha4.tar.gz http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha4.tar.gz.sig Note that there are significant changes in this release from alpha3 and I haven't tested everything extensively. Be careful. The next release will hopefully be v1.2.beta1 with a feature freeze. Most importantly shared mailboxes and IMAP ACLs are finally
2004 Mar 13
2
simple migration 2.8 -> 3.02; simple test cases fail
I've been going back and forth over the HOWTO on bringing up a new samba 3.0 server in place of an old 2.8. I only have about 2-3 users, so even recreating them isn't a major pain -- but what does seem to be a pain is password authentication. I was using smbpasswd before, and am using it in my 3.0 setup as well. I'm running a version for Suse90 pointed to off of their support
2006 Jul 14
3
Accessing the Model class from Controller
Hi, I wonder if there''s an easy way to access the associated Model class from its Controller. Something that would allow me to write snippets like the following: class PeopleController < ApplicationController def some_method person_model_class = self.some_method_to_retrieve_the_person_model_class() end end Cheers, Marco -- Posted via
2006 May 08
7
How to get difference between two dates in days???
Hi, I want to calculate difference between Current date & previous date (stored in database). The difference should be in days. Hhow to do that?? PLs tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2013 Aug 02
1
Custom quota setup
(Dovecot 2.2-ee) We have a weird quota requirement, we have file storage that we manage through our own APIs but want that usage to come out of the user's mail quota. The usage is in a maildirsize like file uncreatively called filestoresize in the user's maildir. In the past we've been doing this by modifying the quota plugin and re-compiling, but it seems like it should be
2006 Jul 07
2
Ajax "Waiting..." flash while round-tripping
I''m trying to figure out how to best allow a user to click a link_to_remote (or something like it) that will make the clicked thing disappear and replace it with a "Saving..." or "Please wait..." image until the server round-trip is complete. Once complete, it needs to replace the HTML in that span or div with text from the server. I imagine it will involve
2006 May 09
2
Disabling FOREIGN KEYs in a Rake task
Hi, How could I disable my database FOREIGN KEYs in a Rake task? Or, how could I call the execute() method in a Rake task? I''m trying to perform something like: task :delete_the_cippalippa => :environment do require RAILS_ROOT+''/lib/marsian.rb'' # FIXME: execute() is undefined execute "SET FOREIGN_KEY_CHECKS = 0" Cippalippa.delete(-1)
2006 Apr 03
1
Best way to set custom Controller options
Hi All! I''m searching a good way to set some options in my Controllers; I tried defining a custom function, ie: class PeopleController < ApplicationController set_my_actions :action1, :action2 end class ApplicationController def self.set_my_actions(*args) @@my_actions = args end end But ''@@my_actions'' sets the class variable to _every_
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',
2009 Jan 30
3
Shared subscription, acl-list and uidvalidity(s)
Hello, I'm running dovecot-1.1.8/Maildir/ACL plugin. I sucessfully set up a Maildir shared between users of the unix group 'doveshared' via a public namespace, unix permissions and ACL files. The location of my public namespace is /path/to/public. I tried 2 sub-setups : First setup ---------- drwxrws--- 4 root doveshared 4096 Jan 30 13:39 public -rw-r----- 1 root doveshared
2006 Apr 28
10
Sharing RJS Templates
Hello All, I''m enjoying the simplicity and power of RJS templates in Rails 1.1, but am perplexed about sharing them. I have several templates that I would like to access in various controllers, but if I moved them to views/shared/whatever.rjs, my app can''t seem to find them. I changed the name to _whatever.rjs and referenced them as "shared/whatever", but no luck.
2003 May 24
1
...listable functions...
Hi R-helpers. I have the following problem: I would like to apply my function gain(df,X,A) to a list of arguments. df is a data frame X,A are the varibales od data frame. When I do > gain(kyphosis,"Kyphosis",c("Start","Number")) [1] "Start" "Number" I get the following error... Error in unique.default(x) : unique() applies only to vectors I
2006 Jun 09
0
Ruby-GetText-Package-1.6.0
Hi, Ruby-GetText-Package-1.6.0 is now available. Chinese(zh_CN), Italian(it) are supported. Screenshots in 13 language (Sample Rails blog) are: http://www.yotabanana.com/hiki/?ruby-gettext-screenshot Since this release, you can localize your rails plugin easily with gettext. I wrote a small example. If you''re interested in it, check the file in the released tar-ball. # See
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
I have Centos 6.1 and i'm configuring cluster with conga, lucci and ricci these services are installed and running without problem. I need this type configuration for a high availability of virtual machines which is run on kvm. My problem is at the time of configuring "service group", when i click to add appears the new windows wich say "add service to cluster" and i fill
2014 Nov 03
1
Re: [PATCH] customize: Add --ssh-inject option for injecting SSH keys.
On Monday 03 November 2014 19:36:21 Pino Toscano wrote: > +val do_ssh_inject_unix : Guestfs.guestfs -> string -> ssh_key_selector -> unit > +(** ... *) Err... this is supposed to be: (** Inject on a generic Unix system (Linux, FreeBSD, etc) the ssh key for the specified user. *) (already fixed locally.) -- Pino Toscano
2006 Mar 28
0
Injecting faxes directly to queue?
I have asterisk with txfax rxfax modules. In default contex I have: [default] exten => 1234567,1,rxfax(/home/patryk/fax-new.tif|debug) Rest o of configuration is default. I'm injecting this: Channel: Local/1234567 MaxRetries: 1 WaitTime: 4 Application: txfax Data: /home/patryk/fax.tif|debug|caller to var/spool/asterisk/outgoing/fax.call but I can't see incoming i fax in my home
2010 May 20
0
Early injecting Jack between call parties
I use Jack for getting callee sound. Dial with option M(): JACK_HOOK(manipulate,i(rec_737219:input),o(rec_737219:output),c(rec_737219))=on This works fine, but I need to connect the sound channel to Jack *before* the actual answer. As you can see in the AMI log, between "Ringing" to JACK_HOOK there is a 6 second break. I don't want that. I need a way to launch Dialplan function
2020 Feb 07
0
[RFC PATCH v7 09/78] KVM: x86: avoid injecting #PF when emulate the VMCALL instruction
From: Mihai Don?u <mdontu at bitdefender.com> It can happened to end up emulating the VMCALL instruction as a result of the handling of an EPT write fault. In this situation, the emulator will try to unconditionally patch the correct hypercall opcode bytes using emulator_write_emulated(). However, this last call uses the fault GPA (if available) or walks the guest page tables at RIP,
2020 Jul 21
0
[PATCH v9 08/84] KVM: x86: avoid injecting #PF when emulate the VMCALL instruction
From: Mihai Don?u <mdontu at bitdefender.com> It can happened to end up emulating the VMCALL instruction as a result of the handling of an EPT write fault. In this situation, the emulator will try to unconditionally patch the correct hypercall opcode bytes using emulator_write_emulated(). However, this last call uses the fault GPA (if available) or walks the guest page tables at RIP,