Skip to content

Instantly share code, notes, and snippets.

@JeanMertz
Created August 3, 2010 10:57
Show Gist options
  • Save JeanMertz/506183 to your computer and use it in GitHub Desktop.
Save JeanMertz/506183 to your computer and use it in GitHub Desktop.
# ERROR:
# _form.html.haml:25: syntax error, unexpected keyword_ensure, expecting keyword_end
# ...:Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer....
# ... ^
# _form.html.haml:28: syntax error, unexpected $end, expecting keyword_end
#
# _form.html.haml:28: syntax error, unexpected $end, expecting keyword_end
#
= form_for([:admin, @stencil]) do |f|
- if @stencil.errors.any?
#error_explanation
%h2
= pluralize(@stencil.errors.count, "error")
prohibited this stencil from being saved:
%ul
- @stencil.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :client
%br/
= f.select(:client_id, Client.find(:all).collect {|c| [ c.name, c.id ] })
= f.fields_for :stencil_config do |stencil_config|
.field
= stencil_config.label :title
%br/
= stencil_config.text_field :title
.field
= stencil_config.label :description
%br/
= stencil_config.text_area :description
.actions
= f.submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment