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.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.