Hi Kevin,

Thanks for the quick reply.

I'm sorry, I didn't explain myself correctly.

I'm not trying to do anything fancy. See my model below:

fields do
    ...
    maximum_memberships :integer, :null => false
   ...
  end

  validates_presence_of :maximum_memberships
  validates_numericality_of :maximum_memberships, :only_integer =>
true, :greater_than_or_equal_to => 2, :less_than_or_equal_to => 30

Two comments on the integer editor field:

1 - The editor is too big (i.e. induces the user to type  of large
numbers)
2 - It crashes when the user types, for example, 123456789123456789

Regards,
  TF

On Jan 13, 1:57 am, kevinpfromnm <[email protected]> wrote:
> Have you tried defining an input tag for bignum that just calls the
> integer tag?
>
> On Jan 12, 5:40 pm, Tiago Franco <[email protected]> wrote:
>
> > If the user enters a very big number in a numeric box, the rapid fails
> > to process the input.
>
> > See:
>
> >http://hobo.lighthouseapp.com/projects/8324-hobo/tickets/368-rapid-cr...
>
> > A quick solution for now is to limit the size of the input box.
>
> > TF
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to