Displaying 20 results from an estimated 96 matches for "overiding".
Did you mean:
overriding
2006 Aug 14
1
Overide the default find_all
Hi,
In my model i want to overide the default find all for sorting purposes.
Is this possible or can this only be done in the control or by adding a
custom method in the model.
def self.find_all()
@contents = Content.find(:all,
:order => ''pos, position_id'')
end
--
Posted via http://www.ruby-forum.com/.
2005 Mar 06
1
Password scheme overides
I notice in the wiki you can have password sceme overides (such as
{PLAIN}password). Would this work with the password fields in SQL
databases (as it isn't clear in the wiki or conf file)?
Regards
Andrew
--
Andrew Hutchings
Linux Guru
Netserve Consultants Ltd.
http://www.domaincity.co.uk/
2002 Oct 29
1
Overiding builtin DLL's for Dreamweaver
Trying to get DW to run and ran into a snag.
I installed it on a Windoze machine and copied the directory over, and
then copied all the dll's I could find in that directory to my system
and system32 directories on the fake drive.
When I go to run DW it crashes with javascript errors. Wine then core
dumps. When I run this from a terminal window I see some errors pop
up as it goes along.
2007 Sep 11
1
Can NOT overides the stub! in the setup
Hello,
I am new to rSpec. I tried to search in the list, but could not find
the answer, please forgive me if somebody already answered this. Here
is my question:
I have a stub in setup:
before(:each) do
@current_user = mock("devsu")
# Generally, prefer stub! over should_receive in setup.
User.stub!(:find).and_return(@current_user)
session[:user] = @current_user.id
2006 Dec 07
1
templating, overide replace etc
Hello,
the file type has some good stuff with
replace and source :
- replace : does it work when we put a content from a template ? i mean
can i say source => template(xxx), replace => false so that if it does
not exist it get created but if it exist the templete is not used
- replace: while i am at it, could we have alias to false/true by
yes/no it would be more readable and
2011 Feb 14
0
Overiding routes in rails3
I have typus and devise almost integrated. However I''m trying to overwrite
the "Sign out" link with typus and
redirect it to devise/sessions#destroy
----------------------
config/routes.rb
----------------------
65 # Override typus TODO this does not work
66 delete "/admin/session(.:format)" => ''devise/sessions#destroy'', :as =>
2007 Mar 28
2
overiding concatenation of tables by alphabetical order
Hi everyone!
When doing a has_and_belongs_to_many join, with two tables, rails
expects a join table whose name is the concatenation of the two table
names in an alphabetical order.
However i have a number of tables which do not follow this convection
and wish to have rails read and recognize them.
for example i have a table called feature and another called cvterm. The
join table is however
2017 Oct 18
4
Global stack on Cortex-M4
Hi all !
I just learned about the Opus codec and would like to try it out on my
NRF52 (Cortex-M4) target. I've been struggling a bit with the
"trival_example.c" setup but repeatedly run into "hard fault" crashes
when stepping through the code.
Firstly; for a "bare bone" configuration, does the following compiler
directives make sense ?
UDEFS =
2019 Feb 06
2
syslinux-6.04-pre2
On Wed, 2019-02-06 at 11:56 -0800, H. Peter Anvin wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
>
> On 2/6/19 11:44 AM, Joakim Tjernlund wrote:
> > On Wed, 2019-02-06 at 11:34 -0800, H. Peter Anvin wrote:
> >
> > Great, that tree now
2020 Jun 16
2
veto files
Hi
I have many shares on my Samba 4 file server and I would like to restrict a
long list of files to most of these shares.
Is it possible to specify the prohibited files in the global section of
smb.conf and apply them to most shares, except for a few?
Regards,
M?rcio Bacci
2005 Feb 09
1
Can't change server_URL data
Hi all,
I'm using the Orban aacplus encoder, which sends the stream to my Icecast
server. The Orban encoder allows one to set the station name, stream
title etc but there is no place for the station url, I suspect this has
been hardcoded in as I've noticed a number of other stations using Orban's
encoder also have links back to their web site.
Is there a way to change or overide this
2006 Jan 22
0
Seperation of application specific view/controller stuff
[I posted to Rails Engines Forum but didn''t get a response so I am posting here]
I installed both login and user engines and got them working. Thanks for
an excellent job! Now, I have some questions on how to customize them
without breaking the code or making future upgrades messy. I have
several questions and any help will be greatly appreciated. I am
designing a student registration
2005 May 25
1
Default caller ID
Hi,
I've been looking at the problem of the default caller ID. When a call
comes in with no CID or witheld it's always set to 'asterisk' which is
what the phone displays. I've been looking for an option to change that.
The only place I can find is DEFAULT_CALLERID in chan_sip.c. This is
set by the 'callerid' option in the sip.conf.
However the documentation
2004 Jun 08
1
uid and gid problems with linux as client and server
...d a server.
The problem is I have a different uid on server (1001) to my client
(1000) so when I try and access a file I appear to the client as not
being the owner. I have tried the uid and gid options in smbmount, but
they do not seem to have any affect (I assume the unix cifs extensions
are overiding them).
On the server side I have a create mask and a directory mask of 775 but
this also has no affect.
This is driving me spare! Is there any way to disable the unix cifs
extensions or to map between uids?
Thanks,
Laurence
2007 Jul 31
2
adding valid user to a home share
What is the easiest way to allow specific users access to other users home
shares?
Current config is:
=================
[homes]
comment = Home Directories
browseable = no
read only = no
valid users = %S
dos filetimes = Yes
guest ok = no
=================
Of course, I do want to continue to use the general [homes] share, but for
some users to
2009 Jan 27
2
dovecot 1.2 virtual folders question
Hi Timo
is this possible a possible setup ?
for downloading imap folders ( including inbox )
with pop3 controlled by a a dovecot-virtual file
in usr/local/virtual/%d/%u/
with content something like that
*
-Trash
-Trash/*
-Sent
-Sent/*
-Drafts
-Drafts/*
all
namespace private {
separator = /
prefix = ""
2019 Nov 02
2
U2F support in OpenSSH HEAD
I've had a patch on the bugzilla for a while related to U2F with
support for a few additional settings such as providing a path to a
specific key to use instead of the first one found and setting if user
presence is required when using the key. Is there any objection to
folding those parts in if appropriate?
Joseph, to offer comment on NIST P-256. There was originally quite a
limited subset
2006 Feb 17
5
getting old values
Hi all,
I''ve add :before_update event to my model
Before updating a record I want to check if new attributes differ to old attr.
My question is how to retrieve old attributes in :before_update event ?
thanks
--
gratis egold 1$ http://shegold.com/
2006 Aug 15
7
Trying to Overide Class Object Methdos For Testing
Hi,
I thought I had a handle on the whole singleton class thing but now I''m
not too sure.
I have a class definition:
class ValidationMaster
def validate(params)
# complex and time consuming validation
# returns true on success, raises Exception
# on failure
end
end
Okay, so when I''m running my functional tests within rails, I want to be
able to control how
2009 Mar 03
2
Passing an SQL fragment in AR save
I have a basic model class TestTime with no customization.
class TestTime < ActiveRecord::Base
end
I would like to pass the following SQL fragment as part of an AR save
call to TestTime objects. How and where would I do this in the model?
"set c_time=current_time"
(current_time is an SQL method, not a variable).
--
Posted via http://www.ruby-forum.com/.