1) Look for the file upload helper for rails --- google this and you should have a start, plenty of tutorials.
2) The one thing is when you create your model (this is only for mysql) is that if your text files are of any large size (I think more than ~64000 chars??), you need to user the longtext datatype in mysql otherwise your files will get truncated. On Mon, Jul 19, 2010 at 9:20 AM, Leonardo Mateo <[email protected]>wrote: > On Mon, Jul 19, 2010 at 9:27 AM, Prabhat Thapa <[email protected]> > wrote: > > Hi plz tell me how to upload a file into mysql table in Ruby On > > Rails ... ? > > also tell me how to read bytes from a file & stores in a variable in > > ruby ... > > Have you googled something about this? What you didn't understand? > What you couldn't find? > Please, don't ask others to do your job. > > -- > Leonardo Mateo. > There's no place like ~ > > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

