I am new to Rails. In my web application, the user can type the
contents of a file in a textarea or a content Editable iFrame and when
he saves the file, the contents should be written to the file with the
file extension specified by the user. How can I do so??
On 30 July 2010 10:12, Silver S. [email protected] wrote:
I am new to Rails. In my web application, the user can type the
contents of a file in a textarea or a content Editable iFrame and when
he saves the file, the contents should be written to the file with the
file extension specified by the user. How can I do so??
Where are you trying to save the file? On the users PC or on the
server?
Colin
On the server
On 30 July 2010 11:26, Jatin kumar [email protected] wrote:
On the server
Please don’t top post on this list. Thanks
Put your text area in a form with a submit button. In the controller
get the contents from params and write it to the file.
Colin