Sunday, January 31, 2010

[Rails] Re: View Helper Scope

On Sunday 31 January 2010, John Lane wrote:
> Thank you this is exactly what is happening. I have done some more
> reading and note that this is now the default behaviour. I am unclear
> on why this would be desirable as default behaviour though.

In my opinion it is not desirable at all. It may be useful when starting
a simple project as everything is automatically there. When the project
grows, however, it bars the way to scoping helpers sensibly, as you have
already noticed.

Helpers are procedural by nature. helper :all drives out the last bit of
polymorphism there was.

Michael

--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate