jshbrmn
jshbrmn

Reputation: 1787

assets not showing up in development environment

I used rake assets:clean while attempting to sort something out with my rails application. This was the first time I did this and I made the poor-practice mistake of trying a command without fully understanding what I am doing. Nonetheless the process reulted in all styling and .js to not get loaded upon site load.

So I then tried rake assets:precompile, to no success.

I feel as though there is something I am not entirely understanding about what I have done or how to solve this, although it may be a really simple fix. I did read up on the assets pipeline in the rails docs. Perhaps I missed some important information there (am moderately short of time).

If anyone could shed some light on this issue, and maybe a clean cut explanation (url or whatever) of the information related to my particular issue, (*cue office space bill lumberg voice) that would be great.

Upvotes: 1

Views: 127

Answers (1)

Jordan Allan
Jordan Allan

Reputation: 4486

rake assets:clean removes compiled assets.

Make sure there are no assets in your public/assets folder and then try running rake assets:precompile

Update:

Turn off debug mode in development:

config/environments/development.rb

config.assets.debug = false

http://guides.rubyonrails.org/asset_pipeline.html#in-development

Why does rake assets:precompile in development cause problems but not in my production environement

Upvotes: 2

Related Questions