Forum: Ruby on Rails Javascript

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Db776099efc5b43b8458885909d8e1d8?d=identicon&s=25 Nisha Thoprath (nisha_t)
on 2009-02-20 06:53
Please tell me how to integrate javascript in ruby code(in rhtml page)
13c60e2a5806406b537daa542d3495da?d=identicon&s=25 huang zhimin (Guest)
on 2009-02-20 07:06
(Received via mailing list)
<% javascript_tag do -%>
    # javascript codes
<% end -%>

hope this can help you

On Fri, Feb 20, 2009 at 1:53 PM, Nisha Thoprath <
rails-mailing-list@andreas-s.net> wrote:

>
> Please tell me how to integrate javascript in ruby code(in rhtml page)
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>


--
My home: http://flyerhzm.spaces.live.com
Db776099efc5b43b8458885909d8e1d8?d=identicon&s=25 Nisha Thoprath (nisha_t)
on 2009-02-20 07:41
Can you tell me how to give name for form_for tag, so that javascript
manipulation can be done on it



huang zhimin wrote:
> <% javascript_tag do -%>
>     # javascript codes
> <% end -%>
>
> hope this can help you
>
> On Fri, Feb 20, 2009 at 1:53 PM, Nisha Thoprath <
> rails-mailing-list@andreas-s.net> wrote:
>
>>
>> Please tell me how to integrate javascript in ruby code(in rhtml page)
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>> >
>>
>
>
> --
> My home: http://flyerhzm.spaces.live.com
13c60e2a5806406b537daa542d3495da?d=identicon&s=25 huang zhimin (Guest)
on 2009-02-20 08:57
(Received via mailing list)
<% form_for :person, @person, :html => {:id => 'person_form'} do |f| %>
    ...
 <% end %>

On Fri, Feb 20, 2009 at 2:41 PM, Nisha Thoprath <
rails-mailing-list@andreas-s.net> wrote:

> >
> >> >
>
--
My home: http://flyerhzm.spaces.live.com
This topic is locked and can not be replied to.