>
> I would propose a different name than than destroy. DESTROY has meaning in
> Perl and I'd rather not add confusion. Sadly delete does to, so I propose
> "remove".
Seems reasonable.
package MyApp::Controller::Posts;
use Mojo::Base 'Mojolicious::Controller';
# Render a form to create a new post (submitted to "store")
sub create {...}
# Render a form to edit a post (submitted to "update")
sub edit {...}
# Render a list of posts
sub index {...}
# Remove a post
sub remove {...}
# Render a specific post
sub show {...}
# Store newly created post (submitted by "create")
sub store {...}
# Store updated post (submitted by "edit")
sub update {...}
1;
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.