how to add semantic ui in a rails app?

只愿长相守 提交于 2019-12-24 03:27:14

问题


i want to add semantic-ui to rails and also i dont want to use ready gems. i already install it in a semantic folder in beside other rails and build it via gulp. then i copy semantic.css to asset stylesheet and require it in application.css

 *= require_tree .
     *= require_self
     *=require semantic.css

and link it in application.html.erb but it doesnot work properly.

<link type="text/css" rel="stylesheet" href="semantic.css">

so i think i should know a lot more about adding semantic ui to a rails app. is there any document or instruction or any help. there is also a same question by others but since 4 month ago it is not answered thanks


回答1:


There is also a SASS version that's a bit faster in terms of page loads.




回答2:


you should add the semantic-ui to the rails asset pipe line. for this you can use the gem less-rails-semantic_ui



来源:https://stackoverflow.com/questions/29909653/how-to-add-semantic-ui-in-a-rails-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!