similar to: Validate your forms with a table-less model

Displaying 20 results from an estimated 1200 matches similar to: "Validate your forms with a table-less model"

2006 Jul 21
2
Tableless ActiveRecord attribute and my aching head
I beat my head against a wall for almost 2 hours with this issue. My first problem was easily solved. I wanted a class that could use ActiveRecord''s validation capabilities but without using a table behind it (I would be persisting setup information in the session, but the initial setup parameters come from a user input form) No problem...found this link which got me up and running
2010 Aug 16
2
Form validation and processing w/o model (no Db/ActiveRecord)
All - Trying not to fight rails on this, basically have a form and all the same as would be with an ActiveRecord model except that there is no table. I started out using this article: http://stackoverflow.com/questions/315850/rails-model-without-database ...which is kind of a hack by inheriting ActiveRecord in to non-AR model but am running into some problems and just have the feeling that I am
2005 Oct 20
2
OT: Apache Script Problem
I recently moved a web site from an old Windows NT machine running Apache to a server running CentOS 4.1. Everything is working fine on the site except for one perl script. I have the standard directory setup: /var/www/html /var/www/cgi-bin etc We had to change our scripts when we moved them because they had windows paths. We have a problem with one script called: contactp.pl It's located
2006 Aug 15
0
ActionMailer
Im trying to send an email see the code below: Model: order_mailer.rb class OrderMailer < ActionMailer::Base def send_an_email() @recipients = "myadress@isp.co.uk" @from = "myaddress@isp.co.uk" @subject = "Ruby Test" @body = "The Body" end end View: send_an_email.rhtml <p>Email was sent!.</p> Controller: Admin.rb def
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.
2017 Aug 06
4
Volume hacked
Hi, This morning one of our cluster was hacked, all the VM disks were deleted and a file README.txt was left with inside just "http://virtualisan.net/contactus.php :D" I don't speak the language but with google translete it looks like it's just a webdev company or something like that, a bit surprised .. In any case, we'd really like to know how that happened. I realised
2005 Dec 28
3
disk mounting madness
I've got a server running CentOS 4.2; installed as 4.1, kept updated by yum. A few days ago it crashed. I picked it up from the datacenter, and brought it back to the office, where it took a long time to boot because it couldn't find anything. When it finally booted and I logged in I discovered an interesting problem. Only the / partition had loaded. /etc/fstab had all the
2006 Feb 05
0
Enum patch for Rails
Hello! I''ve modified ActiveRecord a bit to support enum columns. This is tested only with MySQL, and maybe needs some changes for other adapters (if they use another syntax or quoting style). I believe this patch should be tested well, so I haven''t (yet) tried to post it to the official Trac. It is also not solid-as-a-rock when it comes to quoting ENUM values. After
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi, in the past few months someone posted an entry on their blog about how to do validations in non-AR classes and I cant find it any more. Anyone have a link? Thanks, Trevor -- Trevor Squires http://somethinglearned.com
2004 Dec 07
2
Rsync progress indicator?
I've been reading through the man pages for rsync, yet I can't seem to find a way to provide progress indication and/or current download speed for total and/or individual files... Can this be done with rsync? Is it an implemented feature. I thought -v or -vv would do the trick, but it doesn't... Cheers, -- Dag Rune Sneeggen Romolslia 23B 7029 Trondheim Norway dudcore Inc.
2006 Jan 18
5
install won't boot
Circumstances: The system is a hardware duplicate of a system that installed and works for many months. Running CentOS 4.x. The system was previously in service with CentOS 3.x and I'm trying to install CentOS 4.1 on it from downloaded CDs which have worked previously (these are the same CDs used to install the system that's working). Software RAID. Minimal packages System
2017 Aug 06
0
Volume hacked
I'm not sure what you mean by saying "NFS is available by anyone"? Are your gluster nodes physically isolated on their own network/switch? In other words can an outsider access them directly without having to compromise a NFS client machine first? -bill On 8/6/2017 7:57 AM, lemonnierk at ulrar.net wrote: > Hi, > > This morning one of our cluster was hacked, all the VM
2017 Aug 06
0
Volume hacked
Thinking about it, is it even normal they managed to delete the VM disks? Shoudn't they have gotten "file in use" errors ? Or does libgfapi not lock the access files ? On Sun, Aug 06, 2017 at 03:57:06PM +0100, lemonnierk at ulrar.net wrote: > Hi, > > This morning one of our cluster was hacked, all the VM disks were > deleted and a file README.txt was left with inside
2007 Aug 24
0
ArgumentError: interning empty string and enum-column plugin
Hello, I am a developer who has just started working on a large scale website in a team of 5 other developers. One of the developers has introduced some enum columns into the the database. Now, by default, active record doesn''t support enum column types but I have added the enum-column plugin into our project. This has worked very well except for a few instances where he
2005 Jul 07
2
ftp daemon problem
New install of CentOS 4.1; our first try at the 4.x. On previous 3.x installs we've used proftpd. On this one we're using (trying to use is a better statement of what we're going through) the default daemon, /usr/sbin/vsftpd. But we don't get anywhere. <snip> ftp> passiv Passive mode off. ftp> put ~/xorg.conf.work local: /home/jlasman/xorg.conf.work remote:
2006 Aug 02
3
Active Record
I want to build a one page finance calculator in Rails. The form has several fields on it. When I press the calculate button it will return to the same page with the answer. If there is an error it will also return to the same page with the appropriate error messages. I want it to be able to 1. Carry over all the values on the form fields 2. Use the rails validation methods How can I acheive
2006 Nov 01
3
active_record_base_without_table plugin - Easily use models without tables
Hi all, Here''s another little plugin I wrote to use AR models without tables. It''s dead simple, just extend from ActiveRecord::BaseWithoutTable instead of ActiveRecord::Base: class Contact < ActiveRecord::BaseWithoutTable column :name, :string column :email_address, :string column :message, :text validates_presence_of :name, :email_address, :message end
2008 Dec 05
1
ActiveRecord Oracle and nvarchar2 or nclob datatype
Hi, I ve got oracle database which exists prior to my rails app... :-( I ve got trouble when I am updating/inserting records of a table which includes nvarchar2 attributes. These have a specific maximum length. I often get an error Value too long for column when doing my inserts/ updates, but in fact that is not the case. I ve taken a look at the generated sql statements.... As far as I know
2006 Sep 09
1
Getting Valid ENUM Values in ActiveRecord
I know that Rails doesn''t handle database ENUMs. I''d say that 9/10, you can get away with just using varchar instead. However, there ARE instances where you need certain functionality that ENUMs provide (ie: integrity at the datalevel). I have a working function that will show what enum types are available for a certain column in a table (I believe this will only work for
2006 Apr 26
4
Re: Rails AR/Oracle Unit Test: [4280] failed
The revised patch submitted on #4748 broke the build, I''m looking to sort out why. Also note that this auto-test email didn''t make it to rails-core because it was too big (every test failed, so the resulting email was huge). I''ll patch my auto-testing script to truncate the email to no larger than a few kb. Michael Schoen wrote: > "marcel" made