2
Guys I’m getting beat up for something theoretically simple, I’m wanting to put 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 the Gem 'maskedinput-rails'
.
In my template I make the following call
Then I imported javascript directly into application.html.erb
<%= javascript_include_tag 'application', 'maskedinput' %>
Does anyone know why it’s not working?
Obs: added the maskedinput file to assests/javascript
Any error in console?
– Luiz Carvalho
On your Rails console brings no error message?
– Doug Cunha