similar to: shared methods for controllers belonging to a specific module

Displaying 20 results from an estimated 20000 matches similar to: "shared methods for controllers belonging to a specific module"

2009 Jul 14
4
[ActiveRecord::Base].collect {|a,b| ...} weirdness
Hey everyone. My mind has been boggled by an issue I ran into a few hours ago. I am completely lost as to why the following code behaves the way it does and would appreciate any hints from you guys. It would already be super-helpful if others could post their output for the following so that I can figure out whether this is weirdness specific to my setup or a global phenomenon. So far,
2005 Dec 14
1
[scriptaculous] scroll down to show full auto completion list (w/ possible patch)
Hi everyone, lately I''ve implemented an auto completion textfield at the bottom of a form. I was a bit bothered by the fact that the user would potentially need to scroll down in order to see all the options offered by the auto completion. I couldn''t find any information on how to auto scroll to the auto completion list with bulit-in functionality so I modified controls.js
2002 May 10
1
Parsing output, separating motd and module-list
I'm working on a frontend to rsync, and I've got a problem. It's easy to get a list of files and directories from a specific path on an rsync server. But from the root, I've found it very difficult to get a list of modules. I cannot see when the modt stops, and when the list begins. Can anybody help? -- Mvh. Niels Andersen
2007 Nov 08
2
centile reference chart / clildren growth chart - what package/method to use
We are constructing growth charts (age/weight and age/length) for children with diagnosis that impacts weight/length. But we we don't know how to use R for producing growth charts. We are collection data of Age, Weight and Length. The data are used to produce diagnosis-specific Growth charts (like the CDC Growth Charts:
2006 Mar 21
0
Verification: Module methods being called from controller
If I call module methods from a controller by "requiring my module into" my controller (note that I am not doing a mixin), then it appears that I have to define the module methods as class methods, e.g. def self.xyz in order to access them via the module name. Why is this necessary if a module isn''t a class? It''s a little confusing because in the Pickaxe book, it
2000 Aug 24
1
Method dispatch fails for autoloaded methods (PR#642)
(As mentioned before, on R-devel) This code snippet shows what the Subject above says : > autoload("diff.ts", file="ts") > diff(ts(1:10,freq=2)) Error in tsp<-(*tmp*, value = c(xtsp[1] + lag * differences * xtsp[3], : invalid time series parameters specified > traceback() [1] "tsp<-(*tmp*, value = c(xtsp[1] + lag * differences * xtsp[3], " [2]
2006 Jan 23
0
accessing controllers in script/console
Hi list, I was wondering: is there a simple way to load/create controllers from within the rails'' console? It seem that they are not loaded by default, and I can''t just do something like require ''app/controllers/foo'' since the controller would be missing all of the mixed-in Helpers Is there some easy thing I can do to autoload all the controllers/helpers?
2006 Feb 02
3
What is best way to show only records belonging to logged user?
Hi all, What is best way to show only records belonging to logged user? I understand that it is better to handle this in model and not controller. I am thinking of intercepting find methods in model and add clause something like "WHERE id_user = #{user_id}". I would like to hear if you would do it likewise and if yes is it better to hack find_by_sql() or find() method? thanks in
2005 Jan 05
1
How to specify in a rule all the IP addresses belonging to <domain.xyz>
Is there a way to state that a REJECT rule, for instance, applies to all IP addresses belonging to the <domain.xyz> domain? Costantino
2006 Feb 02
0
What is best way to show only records belonging to loggeduser?
When I do this, I store the after a successful login. user''s id in session. My controller actions pass that id into the find method @tasks = Task.find_all_by_user_id(session[:user_id]) The session would have to be hacked in order for that to be broken. It''s been secure enough for me. -----Original Message----- From: rails-bounces@lists.rubyonrails.org
2017 Aug 30
0
[Gluster-devel] High load on glusterfs!!
Do we have ACL support on nfs-ganesha? On Aug 30, 2017 3:08 PM, "Niels de Vos" <ndevos at redhat.com> wrote: > On Wed, Aug 30, 2017 at 01:52:59PM +0530, ABHISHEK PALIWAL wrote: > > What is Gluster/NFS and how can we use this. > > Gluster/NFS (or gNFS) is the NFS-server that comes with GlusterFS. It is > a NFSv3 server and can only be used to export Gluster
2010 Sep 16
1
The permutation of one vector into another
Dear R-help-list I have two character vectors a <- c("A", "B", "C") b <- c("A", "C", "B") Then sapply(a, function(i) grep(i, b)) computes the permutation of the entries in 'b' needed to bring 'b' into the same order as 'a'. I have searched around, but haven't been able to find any existing function
2013 Mar 04
2
Asterisk 11 - How to trim the number of modules to minimum ?
Hi, I've got a brand new Asterisk 11 setup for which I would like to keep the number of loaded modules to a minimum. My goal is to this setup in a pure SIP environment, for switching incoming calls to outgoing tSIP trunks. When I leave autoload=yes in /etc/asterisk/modules.conf, I can handle an incoming SIP call with a Playback app. When I leave autoload=no in /etc/asterisk/modules.conf, it
2010 Mar 25
1
RODBC : reading binary data from a TXT field belonging to a PostgeSQL table
Dear R-List, I am working with binary data that I want to store in a PostgreSQL DataBase. I decided to use a TXT field. I read my binary file with readBin function, I succeed in my data storage in the database but I have some trouble to extract the data : the correct amount of bytes is stored in the TXT field but when I access to the data, the extracted dataframe is truncated !
2018 Jun 29
1
Joining CentOS Storage SIG
On 29 June 2018 at 16:21, Alan Bartlett <ajb at elrepo.org> wrote: > On 29 June 2018 at 09:07, Niels de Vos <ndevos at redhat.com> wrote: >> On Fri, Jun 29, 2018 at 12:57:13PM +0530, Saravanakumar Arumugam wrote: >> >>> >>> Sure. >>> My wiki login name: Saravanakumar >> >> Thanks! I've put centos-docs@ on CC so that a wiki admin
1999 Nov 15
0
ANNOUNCE: openssh-1.2pre12
openssh-1.2pre12 is available at http://violet.ibs.com.au/openssh/ Changes: Merged many OpenBSD changes Cleanup of askpass support More solaris support Shadow password support Build fixes RPM spec file fixes RPM init script fixes Detailed changelog: 19991115 - Merged OpenBSD CVS changes: - [ssh-add.c] change passphrase loop logic and remove ref to $DISPLAY, ok niels - Changed to
2017 Mar 10
0
CentOS-announce Digest, Vol 145, Issue 5
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When
2016 Sep 11
0
Computer accounts belonging to groups, using winbind on file server
On Sun, 11 Sep 2016 19:03:05 +0100 Jonathan Hunter via samba <samba at lists.samba.org> wrote: > Hi All, > > Some time ago I reluctantly moved DC functionality off my file server > and onto a separate machine, due to the well-known challenges using > the same machine as both a file server and a DC. This went mostly > fine, with one exception - I have one piece of
2019 Sep 10
2
Quota and maildir does not work with subfolders of INBOX
On 9/9/19 6:18 PM, @lbutlr via dovecot wrote: > On 9 Sep 2019, at 09:27, Niels Kobsch?tzki <niels at kobschaetzki.net> wrote: >> The moment I remove those folders, the size gets calculated correctly. Unfortunately those folders are generated by some clients automatically afaik (like .INBOX.Trash) >> That sounds like a misconfiguration of the IMAP client. Someone has gone in
2017 Dec 19
0
CentOS-announce Digest, Vol 154, Issue 3
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When