Newbie rails

I have the following problem where the view is not able to read a array
variable from the model. however my puts staetments thro the controller
is
able to print the values of the varable. more details below
class TorontotraderController < ApplicationController
model :config1
def home

     @hi="cock a doodledo"
     con=Config1.new

@filestoShow=con.getDirectories1()

end

Model is
def getDirectories1
@torontoTraderBasePath=“C:/temp/”
Dir.chdir(@torontoTraderBasePath)

     return  Dir["**{Sc*}"]

end

view is
hello

<%= @hi %>

<% for fil in @filestoShow %>

<%= fil %>

<% end %>

when i state puts @filestoShow in my controller, i get the direcoty
listing in my rails command window. however my home.rhtml is not able
to display any values. if i comment out the @filestoShow in my
controller, i can get my test value. how do i make it to work so that i
can display my @filestoShow properly from my home.rhtml


View this message in context:
http://www.nabble.com/newbie-rails-tf2168029.html#a5994375
Sent from the RubyOnRails Users forum at Nabble.com.