Frederick Cheung wrote in post #979492:
> On Feb 3, 4:36pm, Mohnish G j <[email protected]> wrote:
>
>>
>> The roadblock I am facing is how to call the `$F('publishing_date')` in
>> my new.html.erb file using the rails `<%=>` tag and then assign that to
>> my :publishing_date symbol which will eventually be use to update the
>> publishing_date attribute in my books table.
>>
> You can't. Javascript is client side <%= is server side. You don't
> need to though. When the form containing the calendar gets submitted,
> there will be a calendar parameter (the first argument passed controls
> the name).
>
> Fred
HI Fred,
If I can't call the `$F('publishing_date')`, how else do you think can I
assign the calendar parameter value to the :publishing_date symbol such
that the value is then stored in the database on submitting via the
create button. It's taking a NULL value currently and not the value
selected via the plugin date interface.
Thanks for your time..
Mohnish
--
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.