Re: [Rails] Help Radio button

2013-03-02 Thread Gautam Pai
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/

Re: [Rails] Help Radio button

2013-03-02 Thread Walter Lee Davis
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

Re: [Rails] Help Radio button

2013-03-02 Thread Colin Law
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

[Rails] Help Radio button

2013-03-02 Thread NN Dodhia
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