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
Suscribirse a:
Entradas (Atom)

0 comentarios: