Displaying 1 result from an estimated 1 matches for "load_directory".
2006 Mar 13
6
lame newbie question: how to pass instance variables
...;'m creating here - I want
# to access it in my other action to get only the new pictures.
# There''s nothing in the database record to indicate what''s new,
it''s
# just a question of which new pics I found when calling
scan_directory
@new_pics = Picture.load_directory(".")
flash[:notice] = "Original image directory was refreshed
#{@new_pics.length} new images found"
redirect_to :controller => ''picture'', :action => ''list_new_pictures''
end
def list_new_pictures
# Is this how I should...