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

Javascript not loading? #6

Closed
mattdanna opened this issue Jun 29, 2013 · 4 comments
Closed

Javascript not loading? #6

mattdanna opened this issue Jun 29, 2013 · 4 comments

Comments

@mattdanna
Copy link

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
Copy link
Owner

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
Copy link

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
Copy link

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
Copy link

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

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

4 participants