Ok .. so how exactly should I code this in my controller method? Also
you are suggesting I should not have the :update option at all in my
observe_form call?
Frederick Cheung wrote:
> On Oct 1, 8:08�am, Allen Walker <[EMAIL PROTECTED]>
> wrote:
>> Well I've tried both and it doesn't work. My generated html source for
>> the form:
>>
>> <input id="sale_unit_price" name="sale[unit_price]" size="10"
>> type="text" />
>
> The :update option isn't going to do much since it replaces the inner
> html for the tag and an input tag has no inner html. Executing some
> javascript along the lines of $('sale_unit_price').value = ... should
> do the trick
>
> Fred
--
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---