/ Published in: Rails

Bei Rails (zumindest 3) kann man aus dem controller über view_context auf den Kontext der View zugreifen und so zB viewhelper aufrufen. Zum Beispiel:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
view_context.link_to "hallo", hallo_path()
Comments
