views:

18

answers:

1

Hi ,

Can I dynamically repeat same set of text boxes on the click of an ADD button in rails

I have a scenario where i have to repeat form text boxes based on a users input.

 <td>TestDescription</td>
  <td><%= text_field( :report,:testDescription,:size => 20 ) %> </td>

can i some how repeat this dynamically

thanks

+1  A: 

I'm not sure if this meets your scenario, but this railscast has some nice examples of adding/removing fields that may have many values.

Rob Di Marco