Rails best practice

D

Dan Munk

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
 
T

Timothy Goddard

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

Eric Hodel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top