Closed loganh0522 closed 8 years ago
Getting this as well. Whats your recommended way of loading up the vendor/assets script file?
@loganh0522 , for the meantime i've done this
<%= javascript_include_tag "country_state_select" %>
<%= javascript_tag do %>
$(document).on('ready page:load', function() {
return CountryStateSelect({
country_id: "country",
state_id: "state"
});
});
@variousred Thanks for that, Ill try that out! Where did you put the<%= javascript_tag do %> in your form for it to send CountryStateSelect to your country_state_select?
@loganh0522 anywhere, really. I had it at the top of my form partial file.
@loganh0522 if you have seen gem then if you will go inside test/dummy there is demo app in which you can see how this application is working, let me know if you still have problem?
Hello, I would like to start by saying thank you for developing a gem with this functionality. I have followed the process to integrate your Gem, however, my app does not recognize the CountryStateSelect function in JavaScript.
I could not find much documentation, any help resolving this issue would be appreciated.