On Feb 20, 3:52 am, Vikas Gholap <[email protected]>
wrote:
> list.html.erb code -----------------------
>
> <%...@items_by_language.each do |key,val|%>
> <%val.each do |items|%>
>
> //////code performed on @items_by_language hash variable
>
> <%end%>
> <%end%>
> ------------------------------------------------------------------------
> In controller "_list method" is private and I want it private . Thats
> why it is not allowed me to access @items_by_language.
method visibility has nothing to do with instance variables. If you
are going to localhost:3000/some_controller/list then your _list
method is probably not even being called.
Fred
>
> What should I do?
>
> Thanks,
> Vikas
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---