Rails: is it a good idea to store the view in a global var?

Posted by Totty on Stack Overflow See other posts from Stack Overflow or by Totty
Published on 2010-05-27T18:04:41Z Indexed on 2010/05/27 18:21 UTC
Read the original article Hit count: 116

Filed under:
|

I'm thinking of storing the view, what i mean by view is like this: app/views/profiles/index.html.haml into this i would do $view = self

then in other parts of my app i would use and edit the $view var.

it might get troubles?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby