The javascript function does not work with the rails

advertisements

I'm facing a problem: I have a javascript function in my application.js but it's not working correctly. Always when I click in the button, it gives me this error in the firebug:

goto_nex_photo is not defined

but I have this function implemented in the application.js. I don't what is going wrong. I will post the code of application.js and the gallery_detail.html.erb:

https://gist.github.com/902973


Line 600 you have a random F at the start of the line.