Closed mattdanna closed 11 years ago
Hi Matt,
You are correct. The template javascript isn't loaded by default. For your example to work, make sure the javascript section of the original template in the Flat UI Pro pack is included (js/application.js). Please note that the javascript in there is really just for the template itself, and you should customize it for your needs in your app.
The gem (correctly, in my opinion) only includes the non-template specific javascript (basically everything else).
Hi @reflection , I'm facing the same problem. I see everything in the browser is loaded with all the js, and in my rails, i do include
<%= stylesheet_link_tag 'application' %> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
I guess it should be everything loaded properly?
I wrote up how I got the Flat UI Pro sample page running ... maybe there's something I did that will help? http://joanswork.com/add-flat-ui-pro-to-rails/
work like charm ! Thanks...it need to copy the application js content to the rails project Thanks @jehughes
It doesnt appear like some javascript files are loading from the gem. When creating a rails app following your instructions explicitly, and copying the Flat-UI-Pro's template.html into the app, lots of styles get messed up:
I didn't change any of the .less files in the ui kit. Here's a zipped copy of my rails project in case it helps: http://file.mdanna.me/0P0n3I1h2C1S