Forum: Ruby on Rails Could somone please check this over.. i cant find the error.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-07-24 20:25
Attachment: characters_controller.rb (20 KB)
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
    emil@kampp-productions.dk
Be07c8d0d6867fd9a0d525f7d17600e2?d=identicon&s=25 Damjan Rems (ther)
on 2007-07-24 21:33
Emil Kampp 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
>     emil@kampp-productions.dk

Recheck your do, if, end statements in:
possible_educations
selected_educations

The mess sims to be in these two methods.

by
TheR
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-07-25 01:26
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
8acba6d057b3f0c2c16cca95ad36881b?d=identicon&s=25 Bakki Kudva (bakki)
on 2007-07-26 00:46
(Received via mailing list)
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
Cb98c59a6ff22c72676e756bbd28f266?d=identicon&s=25 Jacob Atzen (Guest)
on 2007-07-26 00:46
(Received via mailing list)
Emil Kampp wrote:
> http://www.ruby-forum.com/attachment/4/characters_...
>

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 Atzen
525e0c75f4f5c1d0ab0b6cc91575b74f?d=identicon&s=25 Emil Kampp (emuen)
on 2007-07-27 17:27
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
This topic is locked and can not be replied to.