Jack Arnst wrote: > The error and code is below. Any help would be greatly appreciated. > > > Error is > > You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.each > > Extracted source (around line #6): > > 3: <table> > 4: <tr> > 5: <% x = 0 %> > 6: <% for video in @videos %> > 7: <td><%= link_to(image_tag("videos/#{video.video_thumbnail}", > 8: :size => '132x99', > 9: :border => 5, > > > > > > Controller is > > def selectaction > @video = Video.find :all > end > > > Jack, Next time, please use the rails forum for posting rails related issues. In this particular case, the instance variable in your controller is "@video" while the variable you are trying to access in your view is "@videos". Change the name in your controller and everything should be ok. Hope this helps ilan -- Posted via http://www.ruby-forum.com/.