jquery - undefined method `gsub' for 2014-10-31 17:55:55 +0530:Time -
jquery - undefined method `gsub' for 2014-10-31 17:55:55 +0530:Time -
while executing next got error message 'undefined method `gsub' 2014-10-31 17:55:55 +0530:time'
the code is
$(document).ready(function(){ jquery(".countdown_timer_widget").countdowntimer("<%= j (time.now) %>", "<%= j (@end_time) %>"); });
i don't know how right , help me
try:
$(document).ready(function(){ jquery(".countdown_timer_widget").countdowntimer("<%= j (time.now.to_s) %>", "<%= j (@end_time) %>"); });
the method gsub strings hence have convert date string.
jquery ruby-on-rails
Comments
Post a Comment