I
I
int22h2014-06-02 16:31:48
Ruby on Rails
int22h, 2014-06-02 16:31:48

Ror why assets are not rendered?

Actually, the problem is that almost all styles and scripts from the site in the dev environment have disappeared.
There is an idea that the problem is in pipline, the connected styles / scripts in the application files are not rendered.
For example, if you go directly to the application.js file in the browser, you get the following content:

//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .
//= require jquery.ui.slider
//= require jquery-tablesorter/jquery.tablesorter

It's the same with application.css. Everything worked well, nothing was updated and nothing changed in the gem file, and then bam once and that's it. I don't know how to fight. I will be grateful for any help.
Environment:
Mac Os Mavericks 10.9.1
rvm 1.25.20
ruby ​​2.1.1/1.9.3
Rails 3.2.8

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Marat Amerov, 2014-06-02
@amerov

had this problem with ruby ​​2 and third rails.
try to run on 1.9.3.

D
Dmitry Lebedev, 2014-06-03
@k3NGuru

bundle exec rake assets:precompile RAILS_ENV=production ?

A
Andrew Emelianenko, 2014-06-04
@YourWest

Clear all caches in the browser, on the site (if any).
Check the development config, stylesheets, and script files for "bad" characters or the wrong extension. If everything is ok, run `bundle update` and reboot the server.
If the problem persists, try reinstalling ruby:

rvm get stable
rvm reinstall 2.1.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question