{{#id}}
<form method="POST" action="/city/{{id}}/edit">
   <input type="hidden" name="id" value="{{id}}" />
   <input type="hidden" name="_method" value="put" />
{{/id}}
{{^id}}
<form method="POST" action="/city">
<input type="hidden" name="id" value="" />
{{/id}}
   <input type='text' name='id' value='{{id}}' />
   <input type='text' name='name' value='{{name}}' />   
   <input type='text' name='state' value='{{state.shortname}}' />
   <input type='text' name='country' value='{{country.name}}' />
   

</form>