From: LMH medchem Date: 2012-12-14T05:21:27+09:00 Subject: ruby on rails or sinatra for dynamic browser application I need to write a simple html file or web application that will allow me to display the contents of a text file in a browser. This will involve some formatting and eventually some dynamic features like sorting. This is tabular data, so I am more or less creating a spreadsheet display in a browser. I don't know how to display a variable amount of data in html. I can hard code things, but for this application, the number of rows and columns will be variable. I want to use ruby because I am using ruby to access a sqlite database from which the text file is created. Eventually the text file will go away and the application will just show data that is queried from a database. It makes sense to use ruby for the dynamic code on the webpabe if I am using it to access the database. I know that both ruby on rails and sinatra are used to create web pages, but I don't know much more than that. Can someone point me to a tutorial or example of how to do something similar? Basically the application needs to open a text file (possibly a browse button on the webpage to give it a path), read the file into variables, and then use the variables to populate rows in a display. Am I on the right track here? LMHmedchem -- Posted via http://www.ruby-forum.com/.