Rails best practice


#1

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


#2

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


#3

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. - removed_email_address@domain.invalid - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com