igor-alexandrov / wiselinks

If Turbolinks are not enough for you. Wiselinks makes your application work faster.
MIT License
723 stars 89 forks source link

Wiselinks doesn't work with default settings #33

Closed JohnBat26 closed 11 years ago

JohnBat26 commented 11 years ago

Hi. I have added wiselinks into Gemfile. Done with bundle install. and added next into my application.coffee:

#= require jquery
#= require jquery_ujs
#= require bootstrap
#= require modernizr
#= require jquery
#= require wiselinks
#= require_tree .

$(document).ready ->
  window.wiselinks = new Wiselinks()

Bu AJAX don't works by default, how in turbolinks. Why?

igor-alexandrov commented 11 years ago

Hello, please look at HTML section of README: https://github.com/igor-alexandrov/wiselinks#html

Wiselinks process links that have 'data-push'=true attribute.

JohnBat26 commented 11 years ago

Hmm. But I use simple-navigation gem.

igor-alexandrov commented 11 years ago

I think that simple-navigation support styling of elements: https://github.com/andi/simple-navigation/wiki/Styling

igor-alexandrov commented 11 years ago

And dont' forget that we have demo application: