Skip to content

Instantly share code, notes, and snippets.

View hammett's full-sized avatar

hamilton verissimo hammett

View GitHub Profile
API 1
<h1>New User</h1>
</div>
@Form.For(Model, UsersController.Urls.Create.Post(), @=> builder {
builder.FormTemplate(@=> template {
<div class="clearfix">
@template.Label()
@hammett
hammett / exp1
Created July 15, 2011 21:29
MonoRail3 helper API - 1
@Form.For(Model, ExpController.Urls.Update.Post(), @=> builder {
<fieldset>
@builder.EditorFor(m => m.Name)
@builder.FieldsFor(m => m.Person, @=> personfields {
@personfields.EditorFor(m => m.Name)
@personfields.EditorFor(m => m.Phone)