On Feb 3, 4:36 pm, Mohnish G j <[email protected]> wrote:

> An interesting excerpt from the aforementioned tutorial link is given
> below:
>
>     The value of the selected date can be accessed by getting the value
> of the text field named calendar.
>
>     Using the Prototype Javascript Library, you can do the following to
> get the value.
>
>     $F('calendar')
>
> 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


> Thanks for your support.
>
> --
> Posted viahttp://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.

Reply via email to