Javad Karbasian
Javad Karbasian

Reputation: 23

how to add semantic ui in a rails app?

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

Upvotes: 2

Views: 1968

Answers (2)

tirdadc
tirdadc

Reputation: 4713

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

Upvotes: 1

bhanu
bhanu

Reputation: 2460

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

Upvotes: 0

Related Questions