I'm getting a theoretically simple thing, I'm looking for a date mask on my application.js
:
//= require maskedinput
jQuery(function($){
$("#datadoacao").mask("99/99/9999");
});
In my partial form:
<%= f.text_field :data_doacao, id: 'datadoacao' %>
And I'm using gem 'maskedinput-rails'
.
In my template I make the following call
So I imported the direct javascript into the application.html.erb
<%= javascript_include_tag 'application', 'maskedinput' %>
Does anyone know why it's not working?
Note: I added the maskedinput file to assests/javascript