new comers.
Rails usually comes with a javascript library, the default is jquery, if you
generate a scaffold you will see it gets imported in the head tag
<%= javascript_include_tag :defaults%>
will import it.
with it you can capture html element via a css selector and attach event to
the element.
http://railscasts.com/episodes/136-jquery
that is an old tutorial but it will get you started.
--
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.