Quantcast
Channel: Notes posted by marcelo_murad
Browsing all 2 articles
Browse latest View live

Example (Struct)

User = Struct.new(:name, :phone) marc = User.new(“Marc”, “555-5555”)

View Article


To verify if the element exists before replacing....

Just add this code into a initializer file. Atention: The code starts at the “module ActionView” and the last “end” has to be copied too. module ActionView module Helpers module PrototypeHelper class...

View Article

Browsing all 2 articles
Browse latest View live