If we don't define any gon variables in a controller action and we try to call gon in the JavaScript we'll get an error as the gon object won't have been set.
Si no definimos variables de gon en la acción del controlador e intentamos llamar a gon en el JAvaScript recibiremos un error porque el objeto gon no habrá sido creado.
The JavaScript we'll write involves some DOM manipulation so we'll use the Prototype library to make this easier.
El JavaScript que vamos a escribir implica que tendremos que manipular el DOM por lo que para hacerlo más fácil utilizaremos la librería Prototypp.
If we reload the page now the JavaScript we entered in the comment field will be executed.
We require the JavaScript file we want to test (channels.js).
Para ello tenemos que importar el fichero que queremos probar (channels.js).
For this particular plugin, the only dependency that we have is the JavaScript file that we just placed in the assets directory.
Para este plugin en particular, la única dependencia que tenemos es el archivo JavaScript que ubicamos en el directorio assets.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.