%= form_for(@credit, :url => {:action => :create}, :html => {:class => 'form-horizontal'}) do |f| %>
<%= f.hidden_field :account_id %>
<% end %>
<%= javascript_tag do %>
$(document).ready(function() {
$("#credit_amount").keydown(function(event) {
preventNonNumericValues(event);
});
});
<% end %>