How to get all the hashes and arrays passed from controller

When i create an Hash in a controller how i can know is name in the
view?

example_controller.rb

def list
@files = Hash.new
end

Now in list.rhtml using something like a specific rails var or function
how i can get that there is an hash that is name is @files?

thanks

I hope my english is ok!

Hi –

On 2/26/07, claudio [email protected] wrote:

Now in list.rhtml using something like a specific rails var or function
how i can get that there is an hash that is name is @files?

The instance variable @files will be visible in the view. (Technically
it’s a different instance variable @files, but the difference is
transparent. It will be set to whatever you set it to in the
controller.)

David


Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)