[Rails] how to access the contents of a field

2010-09-19 Thread abdelkarim
hello every body i have a simple question . i have this form : %= form_tag :action='password' % Password:%= password_field :p , :pass1 , :size='20'% Again:%= password_field :p , :pass2 , :size='20'% how can i access the contents of the two field in ruby ? by doing this :

Re: [Rails] how to access the contents of a field

2010-09-19 Thread Rajinder Yadav
On 10-09-19 04:18 PM, abdelkarim wrote: hello every body i have a simple question . i have this form : %= form_tag :action='password' % Password:%= password_field :p , :pass1 , :size='20'% Again:%= password_field :p , :pass2 , :size='20'% how can i access the contents of the two field in

Re: [Rails] how to access the contents of a field

2010-09-19 Thread Rajinder Yadav
correction: sorry for the typo, you can access the values from your controller like this: ch1 = params[:pass1] ch2 = params[:pass2] -- Kind Regards, Rajinder Yadav -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

Re: [Rails] how to access the contents of a field

2010-09-19 Thread radhames brito
dont forget to user ssl -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com.