According to this article Rails helpers from all controllers are
available to all views. But to me this looks kind of a dangerous
approach because I might at some point use helper methods with the same
name but with different implementations that can cause conflicts and
undesired results. This actually happened one time and it took me quite
some time to figure out the problem.

Why is the Rails helper scope this way?
What is the reason for sharing?
Does anyone had any problems with this approach?
Is there another recommended way to work?

http://strugglingwithruby.blogspot.com.br/2008/10/view-part-2-scope-helpers-and-partials.html

Thank you

Rod

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b6599d857fa9286e5c73dd6a5d310fec%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to