Displaying 1 result from an estimated 1 matches for "xcontroller".
Did you mean:
controller
2006 Jan 27
2
simple stuff in rails rhtml
after playing with the DB interaction I''m moving on to doing some file
IO. but I''m completly lost as to where to put the code and how to call
it.
I''m trying to get a list of files in a directory and it''s not obvious to
me how to do this in Rails via a controller method.
so ruby code is
Dir.entries("testdir").last
and html code is
<%=