Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline conditionals not supported #4

Closed
aldesantis opened this issue Jan 17, 2017 · 3 comments
Closed

Inline conditionals not supported #4

aldesantis opened this issue Jan 17, 2017 · 3 comments

Comments

@aldesantis
Copy link

Erbse fails with inline conditionals such as:

<%= f.input :captain_hired if boat.captain_available? && !boat.captain_mandatory? %>

This will produce an obscure error like the following:

SyntaxError:
  app/concepts/boat_booker/views/show/_form.erb:5: syntax error, unexpected keyword_else, expecting keyword_end
  ; _buf << ("        </div>\n      ".freeze);  else ; 
                                                   ^
  app/concepts/boat_booker/views/show/_form.erb:12: syntax error, unexpected keyword_end, expecting end-of-input
  end;end;end;end
             ^
@george-carlin
Copy link

Possibly related to trailblazer/cells-erb#5 ?

@Aethelflaed
Copy link

👍

@apotonick
Copy link
Owner

Fixed in 0.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants