similar to: Validation Reflection plugin

Displaying 20 results from an estimated 300 matches similar to: "Validation Reflection plugin"

2006 Aug 14
2
Plugins: Validation Reflection and Client-Side Validation
I''ve just put two plugins on RubyForge. Included below are the READMEs. You can get the plugins at svn://rubyforge.org//var/svn/valirefl/validation_reflection/trunk svn://rubyforge.org//var/svn/clientsidevali/client_side_validation/trunk Michael Validation Reflection ===================== Version 0.2, 2006-08-06 This plugin adds reflective access to validations -
2006 Jul 27
9
Introspecting validates_presence_of
Hello people, I''d like to detect whether an attribute of a model has vaildates_presence_of applied to it so I can automatically apply a mandatory (*) to the field...it doesn''t look easy...any ideas? Cheers, -- Dan Webb http://www.danwebb.net
2007 Jul 22
3
Retrieving validation messages without making errors
I would like to inform the users about attribute validation conditions for form fields using title as in <span title= "cannot be blank" >. The simplest way would be to use the validation error messages already defined in the models, but I cannot find any way to retrieve these messages, when no error has been made. The methods I have tried as errors.full_messages only returns the
2010 Feb 10
6
validation problems
Hi, there. I have two validations in the model: validates_numericality_of :value, :only_integer=>true, :allow_blank=>true validates_size_of :value, :is=>9, :message=>"must be 5-digit number", :if=>Proc.new{|u| u.value.is_a?(Numeric)} They work as expected except when the :value is character/string like "a" "abc", the second validation will also output
2006 Nov 07
2
Plugin to add client side JS forms validation ?
Hi, is there a plug in or other things to easily add some client verification for HTML forms ? Thank you very much. Nicolas. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2005 Dec 23
2
no need for DB reflection when using config.active_record.schema_format = :ruby ?
Hi. I''ve not seen anything on this so thought I''d put forward the idea and see if it has any merit, or is already in practice. When using migrations with config.active_record.schema_format = :ruby (ruby as the canonical DB definition) it seems there would be no need to query the database itself to determine its structure; it would already be known. This might have some good
2008 Aug 16
1
[LLVMdev] LLVM JIT and Java Reflection style calls
This is probably another beginners type question but I am researching the use of the LLVM JIT for implementing a language where the main form of interprocedural call is similar to method invocation in Java's reflection mechanism. Is such a thing easily implementable with the current LLVM JIT? Thanks in advance, Carter.
2006 Nov 24
0
ssh bug on Reflection X.
Dear admin, I am working in St George Bank, Australia. I have installed Openssh 4.0p1 and 4.5p1 on our Sun Solaris 8 unix servers. We experience some bug when we launch a window on PC using ReflectionX by method Openssh to any of our Solaris 8 servers, there is no update login and logout information about users on /var/adm/wtmpx. Simply said when we using Reflection X to login a Solaris 8 server
2019 Sep 15
0
Re: [PATCH nbdkit 0/4] Reflection plugin, peer name.
On Sun, Sep 15, 2019 at 03:55:41PM +0100, Richard W.M. Jones wrote: > - Plugins could change content based on client. (The fourth patch in > the series is a PoC of this implemented in the new reflection > plugin.) Be cautious about combining this feature with multi-conn > as it's not obviously always safe to do. Given this commit, I guess we should squash in the
2019 Sep 28
0
Re: [PATCH nbdkit 0/4] Reflection plugin, peer name.
On 9/15/19 9:55 AM, Richard W.M. Jones wrote: > The fun plugin is a reflection plugin which "reflects" client > information back to the client. We have a few fun plugins like this > (hello there, nbdkit-full-plugin) and normally I would push these > without review, but in this particular case there's a specific danger > that sending back data under control of the
2008 Apr 28
0
RTSP reflection.
Atul S Vasu wrote: > Where do I find instruction to configure icecast as a reflect server for > rtsp? Icecast doesn't suppport RTSP. Only HTTP. Geoff.
2008 Apr 28
2
RTSP reflection.
Hi Where do I find instruction to configure icecast as a reflect server for rtsp? Scenario: Client1 sends audio to IceCast via rtsp Client2 receives audio from IceCast via rtsp. I need to just setup this behaviour.. -Atul -- ------- To make world a better place to live in ------- -------------- next part -------------- An HTML attachment was scrubbed... URL:
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
Not sure if this is expected or not. Only happened with a has_one :through I had setup. (Workaround is just to remove it and go through the association manually vs has_one ..., through: .) Not a big deal if no one has time to look at it, as it''s not a big enough deal to look into a fix on our side. In Rails (3.2.9) console if I do: MyModel.reflections.each {|name,reflection|
2006 Jun 08
3
Relationship and reflection
Hello, I have a question. I would like to know if there is a way with the reflection and respond_to? to know if there is a relationship between tables. When I say that I mean if inside a model there is a Has_many or belongs_to declaration. Because I try to get this information dynamically, during the execution of a script. If someone has an idea even if it''s not with the reflection,
2019 Sep 17
0
Re: [PATCH nbdkit 4/4] reflection: Enhance plugin to support client address mode.
On Mon, Sep 16, 2019 at 11:01:49AM -0500, Eric Blake wrote: > On 9/15/19 9:55 AM, Richard W.M. Jones wrote: > > +Another use for the reflection plugin is to send back the client's IP > > +address: > > + > > + $ nbdkit reflection mode=address > > + $ nbdsh -u 'nbd://localhost' -c 'print(h.pread(h.get_size(), 0))' > > + > > +which will
2011 Sep 30
1
Implementing Silverman's Negative Reflection
Hi! I'm trying to implement in R in an easy way the negative reflection method described in Silverman (1986) on p.31, ie I have a non-negative dataset and would like to estimate the density by applying a reflection method where the reflected points have weight -1. I thought there should be a way to evaluate the wanted kernel at the required points, in other words to calculate formula (2.16):
2019 Sep 28
0
[PATCH nbdkit 2/2] reflection: Add mode for reflecting server time.
Either wallclock time, uptime or time since client connection can be reflected back to the client in a big endian binary structure. $ nbdkit reflection time --run 'nbdsh --connect $uri -c "sys.stdout.buffer.write(h.pread(12,0))" | hexdump -C' 00000000 00 00 00 00 5d 8f 24 c7 00 04 24 01 \ | / / $ date --date="@$(( 0x5d8f24c7 ))" Sat
2019 Sep 17
1
Re: [PATCH nbdkit 1/4] Add reflection plugin.
On 9/17/19 2:42 AM, Richard W.M. Jones wrote: > On Mon, Sep 16, 2019 at 10:33:18AM -0500, Eric Blake wrote: >> Is it worth noting that the NBD protocol imposes a 4k limit on the >> export name, which would limit things to about a 3k disk image when >> using base64? (It looks like nbdkit does not currently enforce that >> limit -- maybe it should, but as a separate patch
2005 Dec 29
3
Maintaining DB reflection without scaffolding
Hi, I would like to know if there is a way to maintain database reflection for the ''new'' and ''edit'' views whilst removing scaffolding? I''m trying to create a webapp that will be somewhat maintainable by colleagues (that aren''t necessarily web developers) through simple manipulation of db table fields. For example to add another field to the
2005 Aug 02
0
Re: function.prototype.bind return
Ah - thanks Michael. Event.stop is precisely what I was looking for. I can just grab the event object inside the handler that I registered previously and pass it to an Event.stop call, and get exactly what I want. Thanks, Rahul Date: Tue, 2 Aug 2005 16:08:20 +0200 From: Markus Joschko <markus.joschko@gmail.com> Subject: Re: [Rails-spinoffs] Re: function.prototype.bind