Permalink
Browse files

05| Create an Action

Creating the `messages/new` view
  • Loading branch information...
robertodecurnex committed Aug 26, 2011
1 parent b7dcea9 commit a781476816db1087b968531890e521174d309e35
Showing with 14 additions and 0 deletions.
  1. +11 −0 app/views/messages/form.html
  2. +3 −0 app/views/messages/new/main.html
@@ -0,0 +1,11 @@
+<form action="/messages" method="post">
+ <label>As:</label>
+ <br />
+ <input type="text" name="message[author]">
+ <br /><br />
+ <label>Message:</label>
+ <br />
+ <textarea name="message[body]"></textarea>
+ <br /><br />
+ <input type="submit">
+</form>
@@ -0,0 +1,3 @@
+<h1>Post a new Message</h1>
+
+<div id="form"></div>

0 comments on commit a781476

Please sign in to comment.