Strawberry
Strawberry

Reputation: 67928

Why is my rails.png 404 for a new app of rails?

I just added a new Rails app on my server (Phusion Passenger with Apache), but the assets/rails.png is not found. Could someone explain why this would happen for a new app? and how can I fix it and prevent it in the future new apps?

Upvotes: 0

Views: 288

Answers (1)

Kenny Grant
Kenny Grant

Reputation: 9623

Try running webrick on your dev machine with

rails s -e production

or check the log on the server to see what error you get. Most likely you haven't compiled the assets with:

rake assets:precompile 

that will give you a no route error on images. See this page for asset pipeline details.

Upvotes: 1

Related Questions