2
votes

I have been working on an application for the Rhode Island State Police. I decided to use the devise gem to handle user auth. After running rails generate devise user. I went to the /sign_up page, and found that it was all there, but just as html. For an example of my problem check out my app

http://systemsgroup2.herokuapp.com/ http://systemsgroup2.herokuapp.com/users/sign_in

Thanks for the help.

2
Devise will give you plain html forms, what did you expect?Ahmad Al-kheat

2 Answers

2
votes

Your stylesheets are referenced relative to the current path. In your layouts (or where ever you include your stylesheets) change the paths from

<link rel="stylesheet" href="assets/skel.css" />
<link rel="stylesheet" href="assets/style.css" />
<link rel="stylesheet" href="assets/style-wide.css" />

to

<link rel="stylesheet" href="/assets/skel.css" />
<link rel="stylesheet" href="/assets/style.css" />
<link rel="stylesheet" href="/assets/style-wide.css" />
1
votes

Your stylesheets are not loading for the /user directory because instead of looking for assets/stylesheets it is looking for assets/users/stylesheets. To fix this you can use Rails stylesheet helper instead of manually linking to the stylesheets:

<%= stylesheet_link_tag "application" %>