- if model %form{:action => route_to(model_name, model[:id], 'save'), :method => 'post'} - for prop in props %p~ view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name])) %input{:type => 'submit', :value => 'Save Changes'} = form_link('Publish', packet.route_to(model_name, model[:id], 'publish')) - else %p Couldn't find the item you're looking for.