I am new to ROR and running 2.3.5.I want a simple form with some text
boxes,password field,check box etc.
How to generate a form in ROR?
Thanks
I am new to ROR and running 2.3.5.I want a simple form with some text
boxes,password field,check box etc.
How to generate a form in ROR?
Thanks
Have you read http://guides.rubyonrails.org/v2.3.8/form_helpers.html?
On Mon, Apr 18, 2011 at 11:55 AM, amrit pal pathak <
On Apr 18, 6:05am, Chris K. [email protected] wrote:
Have you readhttp://guides.rubyonrails.org/v2.3.8/form_helpers.html?
i read a bit .like it tell about to write a simple code like
Thanks
amritpal p. wrote in post #993489:
But i didnt explain in which
file it should be written?
Thanks
Well, perhaps you would benefit from seeing a scaffolded response. At an
OS prompt, type in:
ruby script/generate scaffold person first_name:string last_name:string
run the resulting migration, then take some time to look at the
controller, model, and views created for a person / people.
That might give you some insight to how Rails works by default. Then
you could answer your own question I think.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs