Displaying 20 results from an estimated 200 matches similar to: "render :collection and default value"
2006 Apr 11
1
Default value in a Partial that use index
Hi,
here is my situation. I have this controler action:
---------CONTROLER--------
def list
@variations = Variation.find(:all,
:conditions =>["client_id = ?",
@active_client.id]
)
end
---------CONTROLER--------
Which call this view (removed irrelevant parts):
----------LIST.RHTML--------------
2006 Apr 04
5
getting the value of a form select
I have been working for a whole week on this problem without success, so
I feel that its now time to give up and ask for some help since it seems
that I am obvisouly missing something...
all I want to do is having a form with a dropdown menu. When the user
select a value from the drop down and sumit the value, this value must
be the new ''active_client''.
Technicaly, when the
2005 Nov 09
3
dataframe without repetition
Hello,
with a data.frame like this :
> toto <-
data.frame(id=c("id1","id1","id2","id3","id3","id3"),dpt=c("13","13","34","30","30","30"))
> toto
id dpt
1 id1 13
2 id1 13
3 id2 34
4 id3 30
5 id3 30
6 id3 30
what is the most efficient ways to obtain :
id
2004 Oct 07
2
title in bold - simple question in R 1.9.0
Hi,
how can i write this simple sentence : "Hello world" with "Hello" only
in bold ?
I try
> plot(1:5)
> title(main=paste(expression(bold("Hello")),"world",sep=" "))
but the result is wrong.
thanks,
Bruno
Si vous n'etes pas destinataires de ce message, merci d'avertir l'expediteur de l'erreur de distribution et de le
2004 Jul 29
3
2 questions : format and hh:mm
Dear R-users,
i have two questions :
1- first of all, i wish to know the way to obtain a serie with a format
like "00" : ( "01","02","03","04"....) or like postal code
("01100","02222").
for instance, i do :
> format(strptime(as.character(c(1:4)),"%H"),"%H")
but it sounds complicate and not really
2004 Jul 23
3
merge, cbind, or....?
Hi,
i have two data.frame x and y like :
> x <- data.frame( num = c(1:10), value = runif(10) )
> y <- data.frame( num = c(6:10), value = runif(5) )
and i want to obtain something like :
num.x value.x num.y value.y
1 0.38423828 NA 0.2911089
2 0.17402507 NA 0.8455208
3 0.54443465 NA 0.8782199
4 0.04540406 NA 0.3202252
5 0.46052426
2003 Jun 20
1
[HS] results testing asterisk with ISDN BRI & look for help to understand configuring SIP with asterisk
configuration
ISDN BRI
card : ISDN Olitec PCI 128 (hisax gazel)
internet connection by ISDN 64kb/s
dynamic IP
nom de domaine registered to : dyndns.org avec ddclient to register IP
par ddclient
asterisk (on internet gateway)
configuration pour ISDN BRI par virtual modems /dev/ttyI* (modem.conf)
logical telephone SIP "SJPHONE" on 2 local stations "windows"
(i don't succeed
2005 Dec 21
8
text_area
Hi I''d like to know how to add default text text area using the function
text_area. I ''ve tried using value = "....." to do this but with no
luck.
Could some one please answer my simple question?
Thanks.
Dan.
--
Posted via http://www.ruby-forum.com/.
2007 Sep 09
1
ColourDialog
Bonjour Alex. Je voudrais savoir si il est possible de sauvegarder les couleurs quand on se sert de "ColourDialog"?
merci
Sebastien
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2011 Oct 03
4
distance coefficient for amatrix with ngative valus
Hi,
I need to run a PCoA (PCO) for a data set wich has both positive and negative values for variables. I could not find any distancecoefficient other than euclidean distace running for the data set. Are there any other coefficient works with negtive values.Also I cannot get summary out put (the eigen values) for PCO as for PCA.
Thanks.
Dilshan
[[alternative HTML version deleted]]
2006 Apr 22
4
Anyone know how to copy rows?
Hey all,
I''m trying to write something that allows one to copy several rows from
a table and create new rows based on those rows. This will be used to
intentionally duplicate rows. Did I mention that I was having little
luck? I''m from a PHP world, but I''ve been getting really into Rails
lately.
Here''s what I''ve got(assume an event has_many
2003 Apr 30
1
configuration de samba
bonjour ,
Je suis un debutant sur linux et je voudrais
configurer samba pour 2 machines un sur windows 2000
et l'autre sous linux redhat 8.0
je souhaite que vous m'envoyez un exemple de
configuration simple et qui puisse fonctionner car
quand je surf sur le net je me brouille et j'ai pas
exactement ce que je veux
Coordialement
2006 Nov 30
5
Populate table from another table
I want to populate one table in a DB from another table so that the
user does not need to enter the same information twice.
I have a registration table that is populated when a user creates an
account. Later I have a form that uses a different table, but contains
most of the same info as the registration table. I would like that
table to be prepopulated by the registration table before the user
2007 Oct 21
2
dovecot? putting wrong seperator in subscriptions file
My config has folders show up in the root namespace as well as
hidden ones like mail/ for compat. In thunderbird when I set the
namespace prefix to mail/, I effectively cannot subscribe to folders.
You can pull up the folder list, select some folders to subscribe to,
hit okay, and nothing changes in thunderbird:
3 subscribe "mail/Spam"
3 OK Subscribe completed.
4 lsub ""
2005 May 12
5
French SIP or IAX phones
Is there any SIP or IAX phones that can be configure in french
instead of english. I tested Cisco 7960 phones but I can't change the
language it's only available in english with the SIP firmware.
I have a customer that's located in France and he wants french phones
if possible. So I'm wondering if there's any one out there that found
a phone that can be change to
2006 Oct 17
3
Documenting USB tips -- Multi-card support
I would like to document adding multi-cardreader USB support.
I would think that USB support should be added to tips & tricks:
http://wiki.centos.org/TipsAndTricks
Then a link to multi-cardreader support.
My wiki name is RobertMoskowitz
2007 May 16
7
bilingual site: exclude fields set from query
Hi all,
Is there a way to have searches no use some indexed fields, when
processing a query?
context:
I have a model Foo that holds some information in two languages :
- text1_nl, text2_nl, text3_nl
and
- text1_en, text2_en, text3_en
Some other fields are common to both languages and indexed as well
- first_name, last_name
Depending on the visitor language choice I need to exclude the
2016 Jul 12
3
distributing samba users to the local systems
On Tue, Jul 12, 2016 at 02:10:41AM +0200, Xen wrote:
> I want to ask what is the most common approach, and most functional
> smallest-subset-technology approach to achieving the following.
>
>
> - a samba server is using different users for its clients and these
> users are general unix users, owning files and whatnot on the fs.
>
> - a linux system as client now wants
2003 Jan 21
5
French traduction
I''v finished the french translation of the QuickStart Guides named
"Basic two-interface firewall"
As i''v not found the email of Tom Eastep i post this news here.
I''m translating now the "Standalone", and after i will do the "Three
interface"
If there is some french guys here, may be they can read to find some
errors ?! :)
cya
--
VETSEL
2007 Oct 12
13
How to maintain Form State between Postback ?
Hi all,
I''ve trying to look for answers for my problem but so far couldn''t
find one, hopefully you can tell me what to do.
This problem is so ubiquitous to Web Development, pertaining the fact
that the web is stateless, i.e. how to maintain form''s state between
postback.
Basically, I have a form with some validations run for some of the
fields, whenever the user submit