Adam D

Joined

2,360 Experience
23 Lessons Completed
0 Questions Solved

Activity

Posted in Turbolinks 5 issue when clicking back

Hi all,

I'm upgrading my rails 4.2 app to use turbolinks 5 as per the gorails ep but I've ran into a problem.

I'm using zurb foundation framework with offcanvas menu when I open the menu and click a link and then click back the menu is still open and can't be closed!

With the previous version of turbolinks when clicking back the menu would still be open but the menu was still working and could be closed.

Posted in A series on Turbolinks 5

I would love to see a series on Turbolinks 5! I want to gain a good understanding of it so I can use it to its full potential so as suggested by Marek a series covering the basics, advanced topics and using the native android/ios adaptors would be awesome!

I'm working on a new rails 5 app trying to add google places autocomplete address form on a single page basis as it will only be used occasionally and I don't want to go loading javascript unnecessarily.

I've read through the documentation but am having no luck getting this going.

I've also posted on stackoverflow but no responses as of yet, so any help would be greatly appreciated.

**update

Resolve the issue I was having. The reason it wasn't working for me was because in layouts/application.html.erb I had:

<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>

when it should be:

<%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>

Now I just have to work out how to make this script idempotent.