reflection / designmodo-flatuipro-rails

Designmodo's Flat UI Pro Design for Twitter Bootstrap integration into the Rails 3 and 4 Asset Pipeline
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Javascript not loading? #6

Closed mattdanna closed 11 years ago

mattdanna commented 11 years ago

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: image image

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

reflection commented 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).

nichthinkof30 commented 11 years ago

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?

jehughes commented 11 years ago

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/

nichthinkof30 commented 11 years ago

work like charm ! Thanks...it need to copy the application js content to the rails project Thanks @jehughes