Maybe you can look at these screencasts and learn how to dynamically add
form elements using javascript and then adapt it for your case as needed.
http://railscasts.com/episodes/196-nested-model-form-part-1
http://railscasts.com/episodes/197-nested-model-form-part-2
http://railscasts.com/episodes/
On Mar 2, 2013, at 11:20 AM, NN Dodhia wrote:
> Hi i'm fairly new to ruby on rails and i'm creating a form using simple_form
> and in one bit i have radio buttons and say i have 3 buttons a,b,c so i want
> it to be if a is pressed then certain text fields show, and if b is pressed a
> differen
On 2 March 2013 16:20, NN Dodhia wrote:
> Hi i'm fairly new to ruby on rails and i'm creating a form using simple_form
> and in one bit i have radio buttons and say i have 3 buttons a,b,c so i want
> it to be if a is pressed then certain text fields show, and if b is pressed
> a different set of t
Hi i'm fairly new to ruby on rails and i'm creating a form using
simple_form and in one bit i have radio buttons and say i have 3 buttons
a,b,c so i want it to be if a is pressed then certain text fields show, and
if b is pressed a different set of text fields show and similarly for c.
Can anyo
4 matches
Mail list logo