I am a newbie in rails and i tried creating a forum application based upon a tutorial. This is mine forum page however i keep gaining the error:

syntax error, unanticipated keyword_ensure, expecting end-of-inputExtracted resource (around heat #33):30 31

here is the forum index web page which is throw the error:

Forum Last write-up


*

*

what is this doing? a html comment ERB tag will certainly still evaluate. Eliminate it. If you want to comment ruby code usage # instead, like


*

Properly formatted password goes a long means towards diagnosing difficulties like this (mismatch and the like). Shot out the following:

Forum Last article
object ago by no articles "Are girlfriend sure?", :method => :delete %>
topics earlier by no articles "Are friend sure?", :method => :delete %>


*

*

I think you have the order of opening and closing blocks jumbled up.if, for space all opened blocks that need to be closed in ~ the appropriate times.

You are watching: Syntax error, unexpected keyword_ensure, expecting end-of-input

The commented-out finish tag the Benjamin stated is actually important yet misplaced and has come go between your and tags to close the because that forum in
forums.

I prepared a amendment version with some realignments, for this reason I can make sense of it much more easily. Haven"t in reality tested it, though.

Forum Last article
subject back by no short articles "Are girlfriend sure?", :method => :delete %>


Thanks for contributing response to ridge Overflow!

Please be certain to answer the question. Provide details and also share your research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based upon opinion; ago them increase with referrals or personal experience.

See more: Analysis Of Nietzsche'S On Truth And Lies In A Nonmoral Sense Summary

To discover more, check out our tips on writing an excellent answers.


short article Your prize Discard

By click “Post your Answer”, friend agree to our regards to service, privacy policy and also cookie plan


Not the price you're looking for? Browse other questions tagged ruby-on-rails ruby ruby-on-rails-3 or questioning your own question.


site design / logo © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.9.23.40286


her privacy

By click “Accept all cookies”, you agree ridge Exchange can store cookies on your maker and disclose info in accordance with our Cookie Policy.