website/index.txt in roo-0.8.5 vs website/index.txt in roo-0.9.0
- old
+ new
@@ -257,19 +257,18 @@
h3. Remote Access
You can even access your spreadsheet data from a remote machine via SOAP. The examples directory shows a little example how to do this. If you like, you can extend these functions or restrict the access to certain cells.
Remote access with SOAP is nothing specific to roo, you can do this with every Rub object, but i thought it would nice to give an example what could be done with roo.
-h3. With Ruby on Rails
+h3. Excel spreadsheets / Openoffice spreadsheets / Google spreadsheets with Ruby on Rails
-You can even use roo within your web application. On the project page there is an example named roorails.tgz, which shows a short example how you can display a spreadsheet table on a web page (see files app/controllers/spreadsheet_controller.rb and app/views/spreadsheet/index.rhtml).
+There is a simple helper method to display a spreadsheet at your application page:
-To display this example:
+* in your controller, add "require 'roo'" and "@rspreadsheet = Openoffice.new("numbers1.ods")" or
+ "@rspreadsheet = Openoffice.new("http://www.somehost.com/data/numbers1.od s")" to get access to your spreadsheet file
+* use it in any view of your application with "<%= spreadsheet @rspreadsheet, ["Tabelle"] %><br/>" or one of the following formats
-* unpack in any directory
-* cd roorails
-* ruby script/server
-* point your browser to http://localhost:3000/spreadsheet/
+<img src="Roo_Spreadsheets_Rails.png">
h2. Where is it used?
How do you use roo? What are you doing with roo?