<% javascript_tag do -%> # javascript codes <% end -%>
hope this can help you
<% form_for :person, @person, :html => {:id => ‘person_form’} do |f| %> … <% end %>