Rails best practice

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

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

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

http://lists.rubyonrails.org

ยทยทยท

On Feb 13, 2006, at 11:08 PM, Dan Munk 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?

--
Eric Hodel - drbrain@segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com