RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: OXp1845
Solved it...
Had to set jQuery to noConflict(), convert the script to jQuery and add it to a javascript file. Dunno why this happens though...
Getting an error on this line (in the coffeescript file)
puts " if ($('.pagination').length) {"
The error message says: Uncaught TypeError: Cannot read property 'length' of null
What could have gone wrong? The div exists in my index :(
Solved it...
Had to set jQuery to noConflict(), convert the script to jQuery and add it to a javascript file. Dunno why this happens though...
Getting an error on this line (in the coffeescript file)
The error message says: Uncaught TypeError: Cannot read property 'length' of null
What could have gone wrong? The div exists in my index :(