similar to: validations.rb of ActiveRecord - bug or misunderstanding?

Displaying 20 results from an estimated 200 matches similar to: "validations.rb of ActiveRecord - bug or misunderstanding?"

2006 Jun 22
2
eRuby/erb
Hello. Prospective Mongrel user here. Can Mongrel act as a server for eruby or erb files? Example: <html> <body> <p>The time is <%= Time.now %></p> </body> </html> Pistos
2006 Mar 30
15
ActiveRecord 1.13.2 -> 1.14.0 breaks Postgres connectivity
To Whom It May Concern: I have an ActiveRecord-based application (non-Rails). Life was grand until I upgraded ActiveRecord yesterday, after which point I was getting TONNES of these errors from my app and in PostgreSQL''s logs: FATAL: terminating connection due to administrator command According to Google searching, this happens when an external process sends PostgreSQL SIGINT or
2007 Sep 12
1
update_attribute_with_validation_skipping
Does anyone know anything about: update_attribute_with_validation_skipping(name, value) I have read the documention, but, I must say, as much as I love ruby and rails, their documention lacks a lot, especially in the areas of examples and good, sound explanations of what methods do and how the function. The above method is a good example of this. What does the parameter ''name''
2007 Dec 15
2
Reading Model data before update
Hi all, here is the challenge: I have this validation method, that basically prevents an object which billed = true to be updated: def before_update if read_attribute(:billed) errors.add_to_base(''This service has already been billed for'') end !read_attribute(:billed) end The above code does not work in case I do something like: object =
2006 May 20
2
Problems with "Marco Polo Großer Reiseplaner 2005/2006" - Can't print/Street names not shown correctly/Route not shown
Hello. Thanks to the tip to use Wine 0.9.12., I now successfully installed "Marco Polo Gro?er Reiseplaner 2005/2006" on Wine 0.9.12. running on Gentoo Linux. After the installation finished, I upgraded to Wine 0.9.13. First off, the names of the streets aren't printed correctly. Please see <http://www.myimg.de/?img=WineMarcoPoloGroerReiseplaner2.png>. As you can see there,
2006 Apr 01
3
Ignoring Validations In An Admin Tool?
I have the following validation on and ''Order'' model: validates_presence_of :order_lines, :message => ''missing one or more products.'', :on => :save Ok, great. An order has to have products. Ok. Problem is, there are some old orders that don''t have lines (don''t ask) and in the admin tool we need to be able to work on these orders.
2006 Jul 16
0
Routes Misunderstanding
Hi there, I seem to be misunderstanding routes a little bit as I can''t get the behavior I''m expecting from the following. My goal is to get "/forums/1" from the code <%= url_for :id => forum.id %> which is being called from a view associated with a controller named "Forums" and the "index" action. I have the following routes:
2005 Apr 11
1
/etc/rc.bsdextended: am I misunderstanding this..?
Can someone clear something up for me? [[[ # For apache to read user files, the ruleadd must give # it permissions by default. #### ${CMD} add subject uid 80 object not uid 80 mode rxws; ${CMD} add subject gid 80 object not gid 80 mode rxws; ]]] Doesn't the above mean that an apache user (eg, user-supplied CGI process, PHP script, etc) has the ability to read (and write!) anything in the
2004 Jan 24
0
rules/routes traversal misunderstanding
Hi, I''ve been experimenting with ip route for the last few days to get load sharing accross 2 providers working. While it works most of the time, on a few occasions, packets are routed to the wrong interface. I''m not sure to understand rules and routes traversal correctly (I couldn''t find answers in the howto). So, here are my questions: 1. How does the rule
2011 Feb 22
0
Arel: misunderstanding with intersections
Hi, I''ve been playing with Arel for a few days, but I feel really confused about predicates / arrays intersection. Let''s say I have 3 models: users, (bank) accounts and transfers. An account belongs to a user, and a transfer is made of a source and target accounts (see the snippets below). Given a user, I want to query his transfers. I can go this way in the User class: def
2007 Feb 20
2
SAMBA Kerberos misunderstanding
I suspect I might be grossly misunderstanding kerberos and AD here, but I cant seem to grok the following. net ads join integrates my linux samba server (named foundry) into an AD domain and all works fine. The samba server is using the kerberos keytab. root@foundry:~ # kinit -k -t /etc/krb5.keytab foundry$ root@foundry:~ # kinit -k -t /etc/krb5.keytab host/foundry.example.local kinit(v5):
2013 Sep 15
1
syslinux.exe, 6.01: --update misunderstanding
syslinux 6.01, on XP cmd prompt: With syslinux.exe --update c: At least one specified option not yet implemented for this installer. it is clear which option is not yet implemented. However, before trying just --update, I did try: syslinux.exe --active --directory /downloadedPrograms/syslinux \ --update --mbr c: (line was edited for presentation purposes) and got
2008 Sep 22
0
[LLVMdev] Misunderstanding vector
On Sunday 21 September 2008 20:45:37 Jonathan S. Shapiro wrote: > I was re-reading the specification for extractelement and friends, and I > notice that the index is restricted to i32. Since vectors might clearly > have a larger number of elements on 64-bit platforms, I wonder if I am > misunderstanding the intended use of these instructions. The code generator cannot handle vectors
2008 Sep 22
2
[LLVMdev] Misunderstanding vector
On Mon, 2008-09-22 at 09:42 +0200, Duncan Sands wrote: > On Sunday 21 September 2008 20:45:37 Jonathan S. Shapiro wrote: > > I was re-reading the specification for extractelement and friends, and I > > notice that the index is restricted to i32. Since vectors might clearly > > have a larger number of elements on 64-bit platforms, I wonder if I am > > misunderstanding the
2008 Sep 22
0
[LLVMdev] Misunderstanding vector
> > The code generator cannot handle vectors with more than 16383 (?) > > elements. Even so, I'm not sure it makes much sense to use vectors > > with more than a handful of elements. > > I understood Chris to say that these instructions were for SIMD > machines, and if the limit you mention applies to SIMD I'm not worried. > Does that limit also apply to
2019 Dec 27
0
AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?
On 12/27/2019 2:24 PM, Jonathan H wrote: > <Local/1000 at default-0000001f;2>AGI Rx << SET VARIABLE myVar "Hello > World!!!" > <Local/1000 at default-0000001f;2>AGI Tx >> 200 result=1 > <Local/1000 at default-0000001f;2>AGI Rx << GET FULL VARIABLE myVar > <Local/1000 at default-0000001f;2>AGI Tx >> 200 result=1 (myVar) >
2019 Dec 27
1
AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?
OK, that works - looks like a documentation bug? (Also very confusing!) Should I report it on the page at https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+AGICommand_get+full+variable or on the main tracker? Many thanks - couldn't figure out what was wrong! On Fri, 27 Dec 2019 at 19:36, Sean Bright <sean.bright at gmail.com> wrote: > On 12/27/2019 2:24 PM, Jonathan H wrote:
2012 Aug 18
1
Misunderstanding of Subnet directive in hosts files
Hello! Could someone, please, explain to me the meaning of Subnet directive in configuration file of host, because I really don't understand this. http://www.tinc-vpn.org/documentation/tinc_4.html#Configuration "The subnet which this tinc daemon will serve."??? I assign an IP from apropriate subnet to interface, what does it mean "will serve"? I've read
2006 Nov 01
0
Misunderstanding samba [homes]
Samba do the -right- mapping of home-dirs to [homes] share -without- knowing th name of the users??? I'll try to explain: I have 2 winxp clients and a debian server with dpkg -l|grep samba ii samba 3.0.23c-2 running. the name of the xp boxes is borg, dir the users working there are gusi, brigitte gusi have a passwd (on the xp box), Linux account and samba-passwd - all the
2006 Jul 11
1
Misunderstanding with lines (or elsewhere)
Misunderstanding with lines(...) : http://7d4.com/r/ I would like the y coordinate of the horizontal line to be 1/4, and also the line to begin at x=0 and end at y=1. I'm obviously missing something ... so if anybody could help. Many thanks. test = function() { bmp('test.bmp', width=100, height=100) m = matrix(0, 2, 2) par(new=T, fig = c(0,1,0,1), mai=c(0,0,0,0), mar=c(0,0,0,0),