similar to: Form Validation with 2 models on form. Nubee Question

Displaying 20 results from an estimated 1000 matches similar to: "Form Validation with 2 models on form. Nubee Question"

2007 Oct 01
3
stringify_keys!
I have seen this numerious times and still have no idea what it means: undefined method `stringify_keys!'' for "blah22":String I am tring to change a password. My code looks like: def change_password @user = User.find_by_emailaddr( params[:email] ) if @user.nil? # user profile not created flash[:notice] = "<b style = \"color:red\">No such
2006 Mar 16
10
Nubee Callbacks problem
I never want to alter a model(row). When a model has been changed i want a new copy to be created. What is the best way to implement this? I think using callbacks might be the answer. So model.save will create a new row, and leave the old one unchanged. Any ideas? I can easily implement this in the controller but i''d rather it be done transparently. Also errors should be passed back
2006 May 03
1
Nubee Fixtures + Tests problem
According to the book, @timesheets["first_timesheet"] should be accesible from within my functional test, but its not! Timesheets.yml : first_timesheet: status: 2 start_date: 2006-04-24 cost: 10 employee: 444 id: 10683 charge: 20 My Test : class AdminTimesheetsControllerTest < Test::Unit::TestCase fixtures :timesheets def test_viewTimesheet get
2006 May 09
3
"ActiveRecord::Base.connection.execute" nubee problem
Is there any way of executing a full sql script, and not just one statement? You can do this: ActiveRecord::Base.connection.execute("insert into batches (name) values ''name''") but not this: ActiveRecord::Base.connection.execute("insert into batches (name) values ''name''; "insert into batches (name) values
2006 Apr 04
4
Cannot upgrade rails to 1.1, only 1.0. Nubee. Please help
I''ve used putty to SSH in to our solaris system as root: Here is what happens when i try to install rails: # gem install rails -include-dependencies -p http://saiproxy:3128 Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Successfully installed rails-1.0.0 So my question is why
2006 Jun 01
5
RAD RAILS Problem. Wont start! Linux nubee
Hi I''ve just installed SUSE linux, downloaded RADRAILS, and extracted it to /home/myname/bin/radrails. When i try to run it i get the red radrails logo and then it gives me an error and stops loading. Its my first day using Linux, previously i have used windows, so any help is greately appreciated. Here is the log file with the errors in it : chrisr@s213:~> cat
2006 Apr 27
6
Functional Test Problem. Nubee, please help
ALl my controllers require the user to be logged in. SO they will be redirected to my "login" controller. How do i login first in a functional test? Im assuming i use the setup method to login the controller. This is the setup method for the Activities controller functional test: def setup @controller = ActivitiesController.new @request =
2009 Mar 03
2
Misys Tiger with Wine 1.01
Fellow Winos: I am a nubee to Wine. I am using Ubuntu 8.10 with Wine from the repository, which is 1.01. I have a business program that is used to connect a windows PC to an AIX server in our office. So it is basically an emulator. the program is called Misys Tiger. I am able to install the program without difficulty, but it will not run. It goes to the initial splash screen, and then the
2006 May 14
2
Timeout in production mode after 2 min, but not in dev mode?!
One of my actions runs for more than 2 minutes. In development mode it runs and completes successfully, but in production mode it quits out with a timeout error: "Timeout::Error (execution expired):" Any ideas how i can stop this? I''m desperate to find a solution. Is there a setting i can change somewhere? Any help would be greately appreciated, Thanks Chris -- Posted
2017 Apr 05
2
Servicios en la nube
Buenas, me gustarĂ­a saber su experiencia sobre servicios en la nube. Se que hay varios que usan los servicios de MS Azure. Tengo una duda respecto a eso, funciona como una maquina virtual, no? Lo que significa que para correr procesos debo estar conectado a la maquina, o puedo dejar corriendo procesos en segundo plano y volver luego para ver el resultado. Saludos y muchas gracias! --
2000 Nov 07
4
RedHat sshd.init script typo ?
Hi, I noticed one small possible error in the openssh-2.3.0p1/contrib/redhat/sshd.init script. In the stop option: stop) echo -n "Shutting down sshd: " if [ -f $PID_FILE ] ; then killproc sshd [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd fi echo
2006 Mar 15
1
Through method problems with custom foreign_keys
A person has a many company_branches and A company_branch has many people. This join is represented using a "contacts" table. I am using a legacy schema so i am forced into using non-standard rails primary keys. I am using the new through relationship in rails 1.1. p=Person.find(1) b=p.company_branches # gives this error: ActiveRecord::StatementInvalid: OCIError: ORA-00904:
2006 May 09
2
Bulk Inserts. Fast way to insert 1000s records?
Hi, This code loops through my results and saves them : @results.each{|r| r.save} There are potentially thousands of results. This takes ages to complete. Is there a quicker way to do this? Any help is greately appreciated Thanks Chris -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
1
help:sql search for NULL
Hi, I have two tables with identical fields(assignments, and matches). However, only one of them accept NULL values for its fields. I want to be able to find out all the matches for any assignment. The search should retrun the match if the corresponding filed is NULL as well. I wrote down the following code but it doesn''t return anything. I wonder what I am doing wrong. Any help is
2007 Nov 25
1
GAM with constraints
Hi, I am trying to build GAM with linear constraints, for a general link function, not only identity. If I understand it correctly, the function pcls() can solve the problem, if the smoothness penalties are given. What I need is to incorporate the constraints before calculating the penalties. Can this be done in R? Any help would be greately appreciated. -- View this message in context:
2006 Oct 31
1
USB w/Syslinux w/Grub4Dos works on Thinkpad .. but Memdisk doesn't
My thumbdrive w/Syslinux and memdisk doesn't work on my Thinkpad laptop. But the thumbdrive does work on desktop platforms. And .. if i use Grub4dos with Syslinux .. it works on the Thinkpad Laptop. Any assistance would be greately appreciated! Thanks! <<john>> ____________________________________________________________________________________ Access over 1 million songs
2017 Nov 14
1
Live migration haswell, broadwell
Hi I wonder, if live migration (back and forth) is possible on mixed Haswell (Xeon V3) and Broadwell (Xeon V4) installations. The only notable difference between the two is apparently a working TSX implementation on V4, which got disabled on V3 due to bugs. The rest (VMCS-shadowing, posted interrupts) should not apply to our environment, as we do not run nested-vmx nor device-passthrough on
2008 Nov 03
1
TI USB 3410-5052 for CentOS 4.7
Hi, I am trying to build the driver for the TI USB 3410/5052 family of devices. Specifically, I am trying to hook up a MultiTech GSM modem. I have the source for the driver which came with the modem. However, I beating my head against the wall trying to get around the usb-serial.h not found error. I have found references saying usb-serial.h has been moved. Even though I have pulled
2005 Aug 17
1
two-level poisson, again
Hi, I compare results of a simple two-level poisson estimated using lmer and those estimated using MLwiN and Stata (v.9). In R, I trype: ------------------------------------------------------------------------------------------- m2 <- lmer(.D ~ offset(log(.Y)) + (1|pcid2) + educy + agri, male, poisson) -------------------------------------------------------------------------------------------
2013 Nov 01
1
samba4, with existing krb5 and ldap
Greetings, I bave a linux-running-computer acting as a KDC. It has :- OS--blfs linux gcc-4.8.1 linux-3.10.17, krb5-1.11.2, openldap-2.4.35, cyrus- sasl-2.4.26,bind-9.9.4,ntp4.2.7 my /etc/krb5.conf has :- [dbmodules] openldap_ldapconf = { db_library = kldap ldap_kerberos_container_dn = cn=krbcontainer,dc=somewhere,dc=com ldap_kdc_dn =