Sha256: 87765d2bbc8f7df70ddee0560f254c0c43d8b53ff723a970edb99ec55edaef10
Contents?: true
Size: 533 Bytes
Versions: 45
Compression:
Stored size: 533 Bytes
Contents
controller :my_controller do macro :nav do #This one should only go to home if we are #not on home already on "home_clicked", %{ if (current_action !== "home") { Goto("home"); } } #This one should always go home, even if we are #on home already on "home_reload_clicked", %{ Goto("home"); } on "about_clicked", %{ if (current_action !== "about") { Goto("about"); } } end action :home do nav end action :about do nav end end
Version data entries
45 entries across 45 versions & 1 rubygems