similar to: Rails, Views, and Legacy Data

Displaying 20 results from an estimated 9000 matches similar to: "Rails, Views, and Legacy Data"

2006 Jun 13
7
model validation across multiple views
I have a rather complex object with a number of attributes. For a variety of reasons, I would like one view to create the object with only a couple of fields completed, then a second and third view to finish all the fields. I would like the model to validate_presence_of all these fields, since eventually I need them all there, and I would like each page to validate its portion of the fields that
2006 Apr 20
8
generate scaffold not generating views
Hi! Sorry for the newbie question... I''m following the depot example in AgileWebDevelopmentWithRails. Stangelly, generating scaffolding using the command (page 53): ./script/generate scaffold Product Admin does not generate any .rhtml file, but just: exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/
2006 Jun 25
6
Understanding Common Views
Hi Everyone, I''m trying to formulate my thoughts on how views work in RoR and I understand the basic bits - 1. Every controller has its own view defined using rhtml files in the views/[controller_name] folder. 2. There is one "view" file (rhtml) for every in the controller and has the same name as the method. 3. For portions that are common, partials can be used - file
2006 Apr 03
11
View source after AJAX update?
Does anyone know how to view the new source in IE after an AJAX update? When I "view -> source" I get the original page source, not the page source as updated. Thanks in advance, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060403/e8d96b2e/attachment.html
2006 Jul 05
4
degrading gracefully - how to tell if JS is enabled?
Is there a RoR best practice wrt determing in a visitor''s browser has JS disabled? Is there even a way to find out? I''ve got a couple of pages in my app that are not going to degrade gracefully at all. I really need to point a visitor who has JS disabled down a seperate path. Any ideas? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed...
2008 Jan 22
2
extension to nlme self start SSmicmen?
Dear list, Has anyone created a version of SSmicmen that allows testing for group differences? The basic Michaelis-Menten equation is: (Bmax * X) / (Kd + X). The nlme package allows modeling of random effects for Bmax and Kd as needed, but I curious how I can build in group differences? I have receptor binding data for strains of mice, and following Pinheiro and Bates' lead in their
2004 Jan 07
1
Analyzing dendrograms
Ladies and Gentlemen, As Johan Lindberg points out, the documentation for handling dendrograms is sparse....Does anyone know who is responsible for or working on development of tree methods and objects? I've written a couple of scripts for my own use to translate between parenthetical (A(B(CD))) or binary A00 B10 C11 D11 tree formats and cluster objects in R, but as an inexperienced
2005 Mar 14
1
calling objects in a foreloop
I want to organize outputs from several regressions into a handy table. When I try the following, each of my "fit_s" is replaces instead of read. Is there a way to read from the regression summaries that does not require writing separate lines of code for each? -Ben Osborne > fit1<-lm(dBA.spp16$sp2.dBA.ha~dBA.spp16$sp1.dBA.ha) >
2007 Sep 17
2
mongrel_rails hang and does not respond
Hello, I''ve install ror/mongrel etc, etc on a linux server (rhes). As i''m not root, all package startinf from ruby have been install into ~/gconf/usr ruby-1.8.6 and all of this gem package: -r-xr--r-- 1 dimnce dba 168448 Aug 9 14:53 rails-1.2.3.gem -r-xr--r-- 1 dimnce dba 84480 Aug 9 14:56 rake-0.7.3.gem -r-xr--r-- 1 dimnce dba 217088
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background. On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>. Each item <div> has two <span>s. The first one
2006 May 18
4
Can I send rendered .html to somewhere besides the web server?
Is there any way to tell Rails to send the .html file it renders somewhere other than the web server? I need to save a page to the server''s file system instead of sending it to the user''s browser. Thanks! Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/facce47e/attachment.html
2004 Feb 12
3
Ocfs mount issues
I am trying to mount the ocfs partitions using the following command Mount -t ocfs -o uid=oracle,gid=dba /dev/sda /ocfs01 as user oracle and group dba. However it mounts the volume as root. But if I use the ocfstool for the first and mount it as oracle:dba, the subsequent mounts using the above command line mounts the volume as oracle:dba. Is there something that I am missing or I will have
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set. My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2006 Oct 23
8
can a worker commit suicide?
Can a worker kill themselves when they''re ''done''? Or do I have to do that either from the controller or the worker manager? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061023/11dd429c/attachment.html
2003 May 06
1
SIP NOTIFY Message
any way the you can get * to send a NOTIFY SIP message to all SIP phones? to have the SIP sets recheck thier configs etc?? Like this? NOTIFY sip:sip@192.168.0.3:5060 SIP/2.0 Via: SIP/2.0/UDP ipaddress:5060;branch=1 Via: SIP/2.0/UDP ipaddress From: <sip:webadim@192.168.0.1> To: <sip:sip@192.168.0.3> Event: check-sync Date: Mon, 10 Jul 2000 16:28:53 -0700 Call-ID: test@192.168.0.1
2006 Jan 02
19
AR: How to store and restore in YML.
Hello- I have a database with entries that are segmented by customers. I would like to be able to store / delete / restore a particular customer''s information. I will need to rebuild the rows on restore and also rebuild the associations for the different tables. For example, customer { id name } companies { id customer_id (belongs_to) name } contacts { id
2014 Sep 11
4
separar un archivo por años en diferentes archivos
Otra manera sería usar la función split. Que devuelve una lista de data.frame. Para expotar luego cada elemento puedes usar lapply, ejemplo: data(iris) lista<-split(iris,iris$Species) lapply(names(lista),function(x) write.table(x = lista[[x]],file = paste0(x,".txt")) ) Saludos El 11 de septiembre de 2014, 14:44, Isidro Hidalgo <ihidalgo en jccm.es> escribió: > ¿En qué
2011 Feb 17
8
logoutput=>on_failure doesn't work as expected
I''m using puppet 0.25.1. I''ve got a simple resource: exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh": logoutput => on_failure, } and I don''t want it to log every time it''s successfully run: $ sudo tail -F /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: (//my_module/Exec[/bin/ls /u01/
2006 Mar 31
6
string interpolation - #{} vs. single vs. double quotes
Could someone point me to documentation that provides a succinct and accurate description of the difference between interpolation using #{}, single quotes, and double quotes ? I imagine there''s a set of precedence rules that govern behavior if/when they''re mixed. I''d like to get clear on this. Thanks, Bill -------------- next part -------------- An HTML attachment was
2014 Sep 11
2
separar un archivo por años en diferentes archivos
Hola Marta, Si el código exacto que utilizaste es el que has compartido, hay un error... Te falta cerrar un corchete. Y he incluido un detalle para que los ficheros tengan como nombre los años... ?#--------------------------? ??filename<-"test1.csv" DBa<-read.csv(filename,sep="*;*" ,header=TRUE) anios<-unique(DBa$Year) for(i in 1:length(anios)) {