# Could somone please check this over.. i cant find the error

**URL:** <https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269>\
**Category:** Rails\
**Created:** [July 24, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269 "2007-07-24T20:25:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 24, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/1 "2007-07-24T20:25:39Z")

</div>

Hi there. Can anyone help me. I get a “Unexpected $end expected kEnd”  
But the error is in the very last line. What is the reason for this. I  
cant find it myself.

I have attached the file in question to this topic.

- Emil  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 24, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/2 "2007-07-24T21:33:19Z")

</div>

Emil K. wrote:

> Hi there. Can anyone help me. I get a “Unexpected $end expected kEnd”  
> But the error is in the very last line. What is the reason for this. I  
> cant find it myself.
> 
> I have attached the file in question to this topic.
> 
> - Emil  
> removed\_email\_address@domain.invalid

Recheck your do, if, end statements in:  
possible\_educations  
selected\_educations

The mess sims to be in these two methods.

by  
TheR

---

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 25, 2007, 1:26am UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/3 "2007-07-25T01:26:34Z")

</div>

Hey.

I Couldn’t find the error, so i regressed it from my svn repository.  
Thank you for taking the time, to look it through. I Appreciate it.

- Emil

---

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 26, 2007, 12:46am UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/4 "2007-07-26T00:46:31Z")

</div>

You have an extra end some where in your code. You will a have to go  
through all you code and match all the ends.

bakki

---

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 26, 2007, 12:46am UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/5 "2007-07-26T00:46:33Z")

</div>

Emil K. wrote:

> [http://www.ruby-forum.com/attachment/4/characters\_controller.rb](http://www.ruby-forum.com/attachment/4/characters_controller.rb)

Here’s the problem (missing “end” in aprove\_character):

def aprove\_character  
if session[‘user’][‘s’]  
end

## 

# Changes the characters game\_status to active

# 

def change\_gameStatus

You should get yourself an editor which will indent your code, that  
makes it easy to spot these things.

–  
Cheers,

- Jacob A.

---

<div class="post-metadata">

**Author:** ![emuen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/96bed5/32.png) [@emuen](https://www.ruby-forum.com/u/emuen)\
**Post date:** [July 27, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269/6 "2007-07-27T17:27:21Z")

</div>

Hi there Jacob, thnx for the reply. I’m using textmate, it indents, but  
i just haven’t been able to spot the problem ☹

- Emil
