[Catalyst-commits] r7226 - trunk/examples/RestYUI/root/user
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Tue Dec 4 18:38:24 GMT 2007
Author: jshirley
Date: 2007-12-04 18:38:24 +0000 (Tue, 04 Dec 2007)
New Revision: 7226
Modified:
trunk/examples/RestYUI/root/user/single_user.tt
Log:
PUT/POST mixup.
Modified: trunk/examples/RestYUI/root/user/single_user.tt
===================================================================
--- trunk/examples/RestYUI/root/user/single_user.tt 2007-12-04 18:36:24 UTC (rev 7225)
+++ trunk/examples/RestYUI/root/user/single_user.tt 2007-12-04 18:38:24 UTC (rev 7226)
@@ -11,11 +11,11 @@
</head>
<body>
[%
- SET method = 'PUT';
+ SET method = 'POSTT';
# Editing an existing user?
IF rest.user_id;
- # Set the method to POST
- method = 'POST';
+ # Set the method to PUT
+ method = 'PUT';
END;
%]
<form id="user_form">
@@ -29,7 +29,7 @@
<label for="Description">Description:</label><br/>
<textarea name="description">[% rest.description %]</textarea>
</p><p>
- <input type="submit" value="[% method == 'PUT' ? "Create User" : "Update User" %]"/>
+ <input type="submit" value="[% method == 'POST' ? "Create User" : "Update User" %]"/>
</p>
</form>
<script type="text/javascript">
More information about the Catalyst-commits
mailing list