Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created March 8, 2009 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abuiles/75837 to your computer and use it in GitHub Desktop.
Save abuiles/75837 to your computer and use it in GitHub Desktop.
-- getViewDataValue_u return the data which was stored in the controller with the name of "save-url" --
-- in this case we saved the url of the action which create a new post.
markup = <div>
<h1>New Post </h1>
<form action=(getViewDataValue_u "save-url" :: View String) method="post">
Title :
<input type="text" id="title" name="title"></input><br /><br />
<textarea name="content" id="content" cols="40" rows="5">
</textarea>
<br />
<input type="submit" value="Save" />
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment