I am new to Sinatra.
I work currently on a project that is supposed to use a array,
for example: ary = ['a','b','c']
to covert it into an HTML table (possible using an .erb file).
The table should have a single column with as many rows, as there are strings (dynamic).
for example:
- a
- b
- c
- (any other item of the array)
I don’t really have a clue how to do that and I tried code from similar projects, that didn’t work. I hope its even possible to do.
In the controller do
In the view named something you can do