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

how to use it? #3

Open
thearabbit opened this issue Jul 22, 2014 · 6 comments
Open

how to use it? #3

thearabbit opened this issue Jul 22, 2014 · 6 comments

Comments

@thearabbit
Copy link

I am new with Turbo.
How to use it?
Please example for me.
Thanks.

@ghost
Copy link

ghost commented Aug 3, 2014

The documentation does give an example at https://github.com/rcrowe/Turbo#pjax. You install the module and the javascript component. In the example "$(document).pjax('.js-pjax', 'body');", it's saying any link with css class "js-pjax" will be a turbolink request which will replace the contents of .

@bhoopal10
Copy link

i am getting type error pjax is not a function

@iamzozo
Copy link

iamzozo commented Oct 28, 2014

Did you install the Pjax js plugin also? Turbo only handles the backend to serve partials for the pjax plugin.

@bhoopal10
Copy link

how to install Pjax with composer

@iamzozo
Copy link

iamzozo commented Oct 28, 2014

Pjax itself is a front-end jquery plugin, I think you can't install it with composer. You have to include as any other javascript file, like jquery or if you are using bower.

@bhoopal10
Copy link

okay :)

@bhoopal10
Copy link

in front end Pjax is working perfectly but in server side it is not working.
Means in controller if i print any string it is working but if i make view then it is loading full page

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

3 participants