Iam working with Rails from nearly 1 year and as a learner the most difficult matter to me is the view stuff.
I have view file that embeds this: <%= index %>
. I tried to find where this method is defined in the code. I searched and found 12 definitions for index
but non of them was in a helper. I googled it (sometimes strange names like options_from_collection_for_select
OMG :<> appear to be part of the ActionView library) i didnt find it in the action view stuff either.
So I have had this problem multiple times and couldn't find out how the view automagically find this method.
Could you please guide me where to search?