Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error in firebug console #23

Open
tejashande opened this issue Mar 10, 2016 · 0 comments
Open

Parse error in firebug console #23

tejashande opened this issue Mar 10, 2016 · 0 comments

Comments

@tejashande
Copy link

I followed the steps provided in readme but my view was not getting updated.

Then I read plugin & I came to know that getscript is not succeeding.

I did the same thing from firebug console & I came to know that there is parse error. This is what I tried from firebug console

$.getScript('/students/get_all?page=2')
  .done(function( script, textStatus ) {
    console.log( textStatus );
  })
  .fail(function( jqxhr, settings, exception ) {
    console.log( "Triggered ajaxError handler." );
    console.log( settings );
    console.log( exception );
});

& the output

Triggered ajaxError handler.
parsererror
SyntaxError: expected expression, got '<'
window[ "eval" ].call( window, data );

& in my controller, I wrote

def get_all
    @lessons = Student.order('id').page(params[:page])
end

If anyone has faced the same issues, please suggest what am I doing wrong

Thanks in Advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant