Losing Styles in Rails

S

slunky

I'm still relatively new to rails. I'm trying to use it to create a
static site for now, using it mainly as a template engine and then
expanding it as I learn. Everything works fine up to www.example.com/foo
as far as my css stylesheet goes, but say I want to access a page at
www.example.com/foo/bar or I want to access the same page at
www.example.com/foo/index I lose my stylesheet. Anyone know how I can
fix this? I'm stumped right now.
 
S

slunky

_/ slunky wrote \_
I'm still relatively new to rails. I'm trying to use it to create a
static site for now, using it mainly as a template engine and then
expanding it as I learn. Everything works fine up to www.example.com/foo
as far as my css stylesheet goes, but say I want to access a page at
www.example.com/foo/bar or I want to access the same page at
www.example.com/foo/index I lose my stylesheet. Anyone know how I can
fix this? I'm stumped right now.

To elaborate a little more, My stylesheet is placed in
public/stylesheets/ I'm running Apache and FastCGI on FreeBSD and the
latest version of Ruby on Rails. Sorry if I should know this. I'm about
half way through Agile Development with Rails and it hasn't mentioned
anything like this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top