Topic: Form Creation Question {Please L@@K}

I want to create a new form in an existing controller. Can I just create the form for, and then the fieldnames or do I have to scaffold a new controller, or model for every form that I need to use?

Thanks for the answer.

Re: Form Creation Question {Please L@@K}

Normally each action in your controller corresponds to a page(view) with the same name as action and which will be searched in views/yourcontrollername_in_plural. This is in case if you change nothing in your rooutes.rb. Of course you can redirect from your action to another page, another url, render another partial, etc. - there are plenty solutions. But in a classic way that's the way it goes. If you generate scaffold, it will generate u bunch of code fory - your controler with all classic views (index, edit, show, new), your model, your migration, test files, etc.

Re: Form Creation Question {Please L@@K}

Hi.
On my opinion you should scaffold a new controller, but I may be wrong. So you may find many information here: http://phpforms.net/tutorial/html-basic … eator.html - form creator.

Re: Form Creation Question {Please L@@K}

Could you be a bit more specific on what your trying to do ?