Hi Rick, I've been busy, so I haven't checked for responses to my posts for a week or so. Sorry for the delay in this response.
Thanks for your response. I just ordered Advanced Rails Recipes and looked at the attachment_fu.rb from the book. I'm too weak in Rails to see how that's useful for my project. I think I've concocted a solution to my main concern: how to access a CVS file from the file-system from within a Rails app. I now believe I can: 1. get the filenames housed in a specific directory from within a controller using normal Ruby programming. 2. display those filenames as a list in a view and allow the user to select any one of then 3. open the selected file and read its records, one by one 4. extract the fields from each cvs-formatted record and update the database with the contents of those fields. Does that sound sensible to you? Best wishes, Richard On Oct 27, 12:50 pm, Rick <[EMAIL PROTECTED]> wrote: > Take a look at attachment_fu. > > On Oct 23, 4:23 pm, RichardOnRails > > <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I've got a basic Rails app started. One wrinkle is that the user > > wants ideally to be able to browse the files system (a la Windows > > Explorer) to select a file and initiate the importation of data from > > the file. > > > All files selected will be of a predetermined fixed format, e.g. CSV > > with Name, Address, etc. > > > It seems to me that the browser is isolated from the file system, > > albeit Rails' internals know how to get to it. Is there a way to > > implement the above-described functionality in a Rails app? Can YAML > > be used for such functionality? > > > The only approach I see right now is a Ruby database-updater using > > perhaps Active Record with ar-extensions or Active Scaffold. > > > Any guidance would be most appreciated. > > > Best wishes, > > Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

