9
posts.js.coffee.erb
$('.list').infinitescroll {url: '<%= list_posts_path %>', triggerAt: 700, container: $('.container'), appendTo: $('.container'), page: 1}
This makes an exception:
throw Error("NameError: undefined local variable or method `list_posts_path' for #<#:0x00000003557438>\n ...
list_posts_path returns correct path if I use it in controller. What I do wrong?