Access a view helper for a model in rails
Posted
by Christopher
on Stack Overflow
See other posts from Stack Overflow
or by Christopher
Published on 2010-04-24T22:43:20Z
Indexed on
2010/04/24
22:53 UTC
Read the original article
Hit count: 298
ruby-on-rails
I have an Adult model with a name attribute.
If the user is logged in, I want the Adult.name to only return the first name.
Is there a way to have helpers tied to a model where you could specify Adult.helper.name?
Or a least have helpers namespaced to a model?
© Stack Overflow or respective owner