Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Slim does not insert 'end' after a begin/rescue block #374

Closed
agios opened this Issue Apr 5, 2013 · 0 comments

Comments

Projects
None yet
1 participant

agios commented Apr 5, 2013

This prevents you from writing code like:

-begin
  =render partial: "dynamic/#{@obj.class.name.underscore}/form"
-rescue ActionView::MissingTemplate
  =render partial: 'form'

(It checks if an override exists for a form, otherwise renders a default form which auto-generates the fields)

This will throw a SyntaxError, with message unexpected $end, expecting keyword_end

@minad minad closed this in e4df090 Apr 6, 2013

minad added a commit that referenced this issue Apr 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment