rubyonrailsin

A Ruby and Rails talk

Saturday, March 20, 2010


[Rails] Disabled Text_Field Value Not Saved

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I have a text_field that stores an invoice due date. It's value is
updated by JQuery when the user specifies the terms of the invoice.
So, the value would become the Invoice Date + Terms.

The text_field should be disabled so that the user can't put it a
random date without regard to the terms or invoice date.

However, adding the :disabled attribute to the text_field, or adding
the disabled attribute via JQuery results in the value not being saved
when the invoice is created.

How can I make the value of the disabled text_field be recorded during
the @invoice.save?

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive