0

My ruby on rails app is completely functional but I want to style it. Where and how do I set my css file to display properly.

Checkk
  • 91
  • 1
  • 1
  • 8
  • 2
    Possible duplicate of [Where do you put CSS files in a rails app directory?](http://stackoverflow.com/questions/1058886/where-do-you-put-css-files-in-a-rails-app-directory) – GAntoine Jan 20 '16 at 00:42

2 Answers2

2

Put your all css in app/assets/stylesheet folder.

Put your all js in app/assets/javascript folder

& include them by the following code

<%= javascript_incldue_tag "file.js" %>
<%= stylesheet_link_tag "filename.css %>
Chakreshwar Sharma
  • 2,571
  • 1
  • 11
  • 35
0

I resolved the issue by resetting my rails server and placing my css in the assets/stylesheet folder. Really good to know facts for future ROR developers.

Checkk
  • 91
  • 1
  • 1
  • 8