sometimes javascript run perfect and sometimes not in ruby on rails 4 -
i used datepicker in calendar shows perfect not shows arrow button change month. , give error this:
actioncontroller::routingerror (no route matches [get] "/assets/images/ui-icons_ef8c08_256x240.png")
datepicker.js
$(document).ready(function(){ $('[data-behaviour~=datepicker]').datepicker(); });
css link
sorry long question , tell me if miss something.
big in advance
edit: observed when delete public/assets directory , enter rake assets:precompile time error not showing arrow still not showing.
it looks turbolinks problem added rails 4 default. in turbolinks $(document).ready not firing. can see more information turbolinks , suggestions how use them here railscast or can add links
data: { no_turbolink: true }
you can remove turbolinks gemfile if don't need them. check if have ui-icons_ef8c08_256x240.png in
/assets/images/
Comments
Post a Comment