# How to give name to text\_files dynamically

**URL:** <https://www.ruby-forum.com/t/how-to-give-name-to-text-files-dynamically/137879>\
**Category:** Rails\
**Created:** [May 17, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/how-to-give-name-to-text-files-dynamically/137879 "2008-05-17T13:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sai](https://www.ruby-forum.com/u/sai)\
**Post date:** [May 17, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/how-to-give-name-to-text-files-dynamically/137879/1 "2008-05-17T13:49:43Z")

</div>

Hello

I am new to rubyonrais…

I want to display data in table with textfields from database, so  
that  
i can edit all the values at a time, I mean all rows data.then i have  
to save all rows at at time.

How to do this in rails…  
Urgen please

---

<div class="post-metadata">

**Author:** ![sai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sai](https://www.ruby-forum.com/u/sai)\
**Post date:** [May 22, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/how-to-give-name-to-text-files-dynamically/137879/2 "2008-05-22T19:25:28Z")

</div>

On 5/17/08, sai [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I want to display data in table with textfields from database, so  
> that  
> i can edit all the values at a time, I mean all rows data.then i have  
> to save all rows at at time.
> 
> How to do this in rails…  
> Urgen please

Where’s the code representing your own failed attempt?

In a nutshell you have to name your form elements like foo[] so they  
arrive in the post as arrays of data.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
