-
Notifications
You must be signed in to change notification settings - Fork 20
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
Comments
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 , <%= stylesheet_link_tag 'application' %> 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:
![image](https://camo.githubusercontent.com/96998fffe72006a31effa5e55c5857ed3a5c8e402e07bef8d2d405d160948690/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313132313131302f3732353435392f63306230613337302d653036612d313165322d393932642d6132646162616332383439352e706e67)
![image](https://camo.githubusercontent.com/aadb990d5d1babb00d6b7a93b6a0845df09bf0c5505c11e5892b04217a4d41d6/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313132313131302f3732353436322f30313061666332322d653036622d313165322d396332382d3837386465663938316566302e706e67)
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
The text was updated successfully, but these errors were encountered: