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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -