sprockets

Popularity
500+ learners.
Este tipo de archivo se conoce como manifiesto y lo gestiona Sprockets internamente.
This type of file is known as a manifest and it's managed internally by Sprockets.
Este problema se debe a la forma en la que Sprockets funciona en Rails 3.1.
This error is caused by the way that Sprockets work in Rails 3.1.
Para convertirlo en un manifiesto tenemos que añadir algunos comentarios en la parte superior para indicarle a Sprockets los ficheros que debe incluir.
To turn it in into a manifest file we need to add some comments at the top that will tell Sprockets which files to include.
Cuando llega una petición para este archivo, Sprockets mira el manifiesto y recopila todos los ficheros mencionados y pone sus contenidos antes del código que aparezca en este archivo.
When a request comes in for this file Sprockets looks at the manifest and compiles together every file that is mentioned in it and includes their contents before any code in this file.
Entre bambalinas Rails hace todo esto utilizando Sprockets, que recibe todo los ficheros JavaScript o CSS necesarios en la aplicación y los combina en un único archivo que es el que se entrega al cliente.
Behind the scenes Rails uses Sprockets to accomplish this. Sprockets takes all of the JavaScript or CSS files in an application and merges them into a single file that's delivered to the client.
Sprockets buscará en los directorios mencionados en la ruta de carga en busca de este archivo y, en este caso, lo cargará del directorio vendor/asset/javascripts de la gema.
Sprockets will search the loadpath for this file and, in this case, load it from the jquery-rails engine's vendor/asset/javascripts directory.
Word of the Day
to plant