similar to: Newbie validation question

Displaying 20 results from an estimated 500 matches similar to: "Newbie validation question"

2009 Apr 11
6
Inserting data from 1 table to another by using find_by_sql
Hi All, I am inserting data from one table to another by using following method @data=RoyaltyReportFiles.find_by_sql("insert into royalty_reports (artist_name, album_name) select artist_name, album_name from temp_royalty_reports where id=328417") it saves the data into royalty_reports table but it gives following error and application crashes. i am using rails 1.2.5 You have a nil
2004 Oct 01
5
Song Updates
Run this from command line: curl --user admin:hackme 'http://192.168.0.1:8000/admin/metadata?mount=/live&mode=updinfo&song=Artist_name+Title' That should set you all up, just change IP, Port and MountPoint. -- Cody Tubbs : (Certified Master Linux Administrator) : (Certified Unix Security Specialist) -- Broadway Internet On 1 Oct 2004 at 12:15, Dave St John wrote: >
2006 Jul 19
0
Form helpers produce invalid XHTML code!
Hi all The following scaffold creation form code... <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> ...creates this HTML colde: <form action="/en/bookings/create" method="post"> <!--[form:artist]-->
2006 Jun 27
4
Not Active Record Model Validation
I have a problem with ruby on rails validation total_book_toy.rhtml ================ <%= text_field ''book1'', ''title1'' %> <%= text_field ''book2'', ''title2'' %> I want to validate these text_field so user can''t insert same title. However, I was stuck how to do it. Or maybe you have another way how to do it.
2004 Oct 01
0
Song Updates
Please paste exact output and syntax On 1 Oct 2004 at 15:08, Dave St John wrote: > We tried curl but got an error saying an extra method is not available? > ideas? > > > Dave St John > Mediacast1 Administration > > Need Support ? > http://mediacast1.com/helpdesk > ----- Original Message ----- > From: "Cody Tubbs (wISPdirect)"
2004 Oct 02
0
Song Updates
You did not type the exact string I told you to first of all. You forgot to use the 's after before the h in http and at the end. curl --user admin:hackme 'http://192.168.0.1:8000/admin/metadata?mount=/live&mode=updinfo&song=Artist_name+Title' notice the useage of the 's in my string and not in yours. Your string is launching nonsense into the background via the two
2004 Oct 13
0
Song Updates
My bad, try curl -s --user etc etc etc... I suppose that'd help. :] On 13 Oct 2004 at 13:02, Dave St John wrote: > > Here is the error i get now. > > [root@mc1 gork]# curl --useruser:pass > 'http://64.62.252.140:9120/admin/metadata?mount=/live.ogg&mode=updinfo&song=test_name+te > st_Title' > <b>source will not accept URL updates</b> >
2006 Jun 14
3
Prevent duplicate HABTM associations
Hi, I am trying to restrict duplicate has_and_belongs_to_many associations. I tried to find support for a association validation for duplicates but couldn''t find anything. I understand I could use :uniq=>true on the model association but this would only prevent it from displaying duplicates, I want to stop duplicate associations being inserted in the first place. I have a vague
2006 Nov 29
2
validates_uniqueness w scope
In a one-to-many relationship (domain has_many :categories and category belongs_to :domain) In the category model I use: validates_uniqueness_of :name, :case_sensitive => false but upon creation of a category this validation is performed on ALL domains, can I restrict it only to the categories of the current domain, the to which teh category being saved belongs_to ? if yes ? how ? thanks
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi, I''m currently running an apache/jboss cocoon/flow/hibernate/ajax paypal (directpayment) project and am looking into the possibility of porting it across to ruby/rails. For that reason I would like to know the following: 1. Can I call my java classes or would I be looking at a complete rewrite in ruby? 2. How effective is ruby in terms of seperation of concerns regarding design from
2002 Apr 12
2
Using openssh 3.1p1 on Solaris with tcp wrappers?
Dear OpenSSH Developers, Thanks for all the great work on this important tool. We've built version 3.1p1 on SAPTC platforms under Solaris 2.8 using gcc 2.95.2. Several quick notes and a question: 1) There are several discrepancies between the INSTALL file on the openssh web site ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/INSTALL and the output from "./configure
2004 Oct 14
2
Song Updates
Let this be a note for everyonein the future then. When using mp3s i don't think there is a --enable-mp3-updates (I think it worked by default for me), yet if using ogg vorbis you must compile icecast2 with --enable-vorbis-updates in order to update the song/title id3 metadeta (Instructions on how to do so with `curl' are below). If I was using ogg I may have been of more use, yet I
2006 Jul 19
2
Creating a safe sequence generator
Hi all, I''ve got a rails and database question. Accounts have jobs, and job numbers should be assigned per account. Account 89 should have jobs 1-whatever, which are not the same as account 67, which has jobs 1-whatever. In the past, I have accomplished this quite easily with: create table job ( accountid int(10) unsigned not null default 0, jobid int(10) unsigned not null
2004 May 01
1
Via Mini-itx anaconda install failure
-------------- next part -------------- An embedded message was scrubbed... From: Steve Rodgers <hwstar at rodgers.sdcoxmail.com> Subject: Via Mini-itx anaconda install failure Date: Sat, 1 May 2004 14:31:43 -0700 Size: 849 URL: <http://lists.centos.org/pipermail/centos/attachments/20040501/e69b2948/attachment-0005.mht>
2006 Feb 09
1
SPA-3000 VOIP-PSTN gateway - longdelaybetweenanswering and ringing
You can even set it to zero. Mine works well when in zero. The line pick up immediately :> -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris Stenton Sent: Thursday, February 09, 2006 6:57 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] SPA-3000 VOIP-PSTN
2019 Jan 31
2
[RFC] Late (OpenMP) GPU code "SPMD-zation"
<font size=2 face="sans-serif">Hi Johannes,</font><br><br><font size=2 face="sans-serif">Thank you for the explanation.</font><br><br><font size=2 face="sans-serif">I think we need to clarify some details about code generation in Clang today:</font><br><br><font size=2
2004 Sep 30
2
Song Updates
Hello Everyone, What is the string to update song titles? I have seen a few but none seem to work. Thanks John
2006 Oct 12
2
How do I test a unique index?
I have a loans table and a payments table. Each loan has_many payments. So far no problem. Now, the payments table has a payment_number field, and each payment has a payment_number unique within that loan. For example, Loan A can have payment_numbers 0, 1, and 2 and Loan B can have payment_numbers 0, 1, 2, and 3 (but only one of each payment_number). I can enforce this with a unique index in
2005 Aug 15
1
Maximum remote directory size in Polycom IP501
Greetings, We are trying to make our corporate directory (around 400 entries) available via TFTP to some Polycom IP501 phones. A small (~40 entries or so) file works, but the full file fails to load. Does anyone know what the upper limit on directory entries is? The size of the XML file itself is only 60K - you'd think that would all fit into the phone with no problems..... I would
2002 May 29
1
Unable to configure 2.2.4 on HPUX 10.20 (locking not available)
While running configure on samba2.2.4 source on an HP-UX 10.20 OS, I get the following: checking configure summary... ERROR: No locking available. Running Samba would be unsafe configure: error: summary failure. Aborting config What exactly does "No locking available" mean, and is there a workaround? I'm currently running version 1.9.15p8 on the same OS. TIA! Ed Rodgers