En los archivos .html.erb hay dos formas de
In a `.html.erb`file, there are two kinds of Ruby code instructions in addition to the HTML
elements:
▪ <% ... %>
Executes the Ruby code it contains, but does not output anything (unless you explicitly
use something like print or puts).
▪ <%= ... %>
Executes the Ruby code it contains and outputs the result as a String. If it’s not a String
the method to_s will be called.
Etiquetas erb en Rails
About author: canros.mx
Cress arugula peanut tigernut wattle seed kombu parsnip. Lotus root mung bean arugula tigernut horseradish endive yarrow gourd. Radicchio cress avocado garlic quandong collard greens.
Suscribirse a:
Enviar comentarios (Atom)

0 comentarios: