# Rails best practice

**URL:** <https://www.ruby-forum.com/t/rails-best-practice/53755>\
**Category:** Ruby\
**Created:** [February 14, 2006, 8:08am UTC](https://www.ruby-forum.com/t/rails-best-practice/53755 "2006-02-14T08:08:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [February 14, 2006, 8:08am UTC](https://www.ruby-forum.com/t/rails-best-practice/53755/1 "2006-02-14T08:08:33Z")

</div>

Hello,

I’ve just finished reading the Pragmatic Programmer book on Rails. It  
demonstrates several ways to handle add/edit modes for forms. The  
approach similar to scaffolds and then an action that posts back to  
itself, branching on get and post. Is one better than the other? Are  
they mixed and matched within the same application?

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [February 14, 2006, 10:43am UTC](https://www.ruby-forum.com/t/rails-best-practice/53755/2 "2006-02-14T10:43:41Z")

</div>

This is a purely aesthetic decision. You can implement either, although  
I would personally have separate methods. It’s your choice.

---

<div class="post-metadata">

**Author:** ![dkam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dkam](https://www.ruby-forum.com/u/dkam)\
**Post date:** [February 14, 2006, 11:30pm UTC](https://www.ruby-forum.com/t/rails-best-practice/53755/3 "2006-02-14T23:30:20Z")

</div>

On Feb 13, 2006, at 11:08 PM, Dan M. wrote:

> I’ve just finished reading the Pragmatic Programmer book on Rails. It  
> demonstrates several ways to handle add/edit modes for forms. The  
> approach similar to scaffolds and then an action that posts back to  
> itself, branching on get and post. Is one better than the other? Are  
> they mixed and matched within the same application?

You’ll get the best response for this from the Rails mailing list.

[http://lists.rubyonrails.org](http://lists.rubyonrails.org)

–  
Eric H. - removed\_email\_address@domain.invalid - [http://segment7.net](http://segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
