# Newbie - how do I create an edit form without scaffold?

**URL:** <https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109>\
**Category:** Rails\
**Created:** [December 10, 2005, 4:47pm UTC](https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109 "2005-12-10T16:47:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farocco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@farocco](https://www.ruby-forum.com/u/farocco)\
**Post date:** [December 10, 2005, 4:47pm UTC](https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109/1 "2005-12-10T16:47:40Z")

</div>

Hello,

Can someone give me a short code example of how to code an edit form and  
controlled?

Say I want to edit a title with a key of id

\<form…what goes here

def edit ... what goes here end

thanks  
Frank

---

<div class="post-metadata">

**Author:** ![farocco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@farocco](https://www.ruby-forum.com/u/farocco)\
**Post date:** [December 10, 2005, 4:51pm UTC](https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109/2 "2005-12-10T16:51:46Z")

</div>

On 12/10/05, Mr FRANK ROCCO [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> def edit ... what goes here end
> 
> thanks  
> Frank

Generate your scaffold with script/generate MyModel. It will show you  
an example of how to do this.

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![farocco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@farocco](https://www.ruby-forum.com/u/farocco)\
**Post date:** [December 10, 2005, 5:16pm UTC](https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109/3 "2005-12-10T17:16:26Z")

</div>

Hi Frank:

I’d use the scaffolding to create the form there way and use that as  
a reference to build my own and then delete the scaffolding produced  
one.

bruce

---

<div class="post-metadata">

**Author:** ![farocco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@farocco](https://www.ruby-forum.com/u/farocco)\
**Post date:** [December 10, 2005, 10:14pm UTC](https://www.ruby-forum.com/t/newbie-how-do-i-create-an-edit-form-without-scaffold/97109/4 "2005-12-10T22:14:53Z")

</div>

ok, thanks

I just changed the cookbook edit.rhtml to use text\_field and it works  
fine.  
I am using locomotive on mac.

I tried to change an app I coded at work on windows using radrails  
and it would not run.

not sure what’s going on.

Thanks again for your help.

Frank
