Ruby errors: syntax error, unexpected kEND, expecting $end

Got this particularly nasty error without a single frame of stacktrace:

SyntaxError in PostController#show_by_id

app/controllers/post_controller.rb:36: syntax error, unexpected kEND, expecting $end

After too long time I realized I had an extra end lurking in my code!

So there you go, I should get a better editor for Ruby! Any pointers?

1 Responses to “Ruby errors: syntax error, unexpected kEND, expecting $end”


  • the newest distribution of ruby (for windows) comes with SciTE, which is pretty handy… Very light on ram/processor time and highlights syntax. Hopefully this will help a little bit

Leave a Reply