Getting and displaying all files in a folder as links on the home page of my sinatra app
|Added at||2017-01-04 23:01|
I'm making a wiki in Sinatra and I have the following code, which works, it just strikes me as a little bit clunky. I'm trying to get all the wiki entries saved in "pages" and display them on the homepage as links.
If any ruby genius would like to demonstrate eloquent ruby I would be very grateful!