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.

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


Eric H. - [email protected] - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com