# Help with app issuing error 500

**URL:** <https://www.ruby-forum.com/t/help-with-app-issuing-error-500/116551>\
**Category:** Rails\
**Created:** [October 7, 2007, 7:12am UTC](https://www.ruby-forum.com/t/help-with-app-issuing-error-500/116551 "2007-10-07T07:12:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Post date:** [October 7, 2007, 7:12am UTC](https://www.ruby-forum.com/t/help-with-app-issuing-error-500/116551/1 "2007-10-07T07:12:07Z")

</div>

Hi guys

I have a running app that worked in a server (apache + linux). Brougt  
it home and it dosen’t seem to be working(mac + webbrick).

I get the error 500 message. I have another app and it runs fine. The  
app was created in rails 1.2.3 and I am running 1.2.4. Can this be an  
issue?

What I do is the following: I have created a local db. I did a migrate  
already.  
Everything should work, but it isn’t.

I tried to do a chmod -R 777 tmp/ log/ in my app folder just in case,  
and it still dosn’t work.

What do you guys suggest?

Thanks in advanced for any help.

Jonathan

---

<div class="post-metadata">

**Author:** ![JoeRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Post date:** [October 8, 2007, 1:33am UTC](https://www.ruby-forum.com/t/help-with-app-issuing-error-500/116551/2 "2007-10-08T01:33:23Z")

</div>

Hi Joe

> SyntaxError (/var/www/sandbox/public/…/config/…/app/models/user.rb:  
> 20: syntax error, unexpected ‘?’  
> self.roles.count(:conditions =\> [‘name = ?’, role]) \> 0

cch: Look at user.rb, line 20
