Ruby on Rails Saturday, February 26, 2011

On Feb 26, 12:37 am, noname <informzoo.ad...@gmail.com> wrote:
> When I try to run my rails project, I get a message that there is a
> syntax error and the application cannot compile (see below).  However,
> it does not tell me which file has this error.  So instead of saying
> "(index.erb):56:  syntax error, unexpected $end, expecting ')'" it
> just has (erb) where it should provide a filename.
>
> Can someone provide some pointers to help me narrow the field a bit?
>

In the absence of more forthcoming error messages I'd try removing erb
files from the project until the error goes. Once you know which file
has the error you should be in a better position to work out what it
is. You might also want to git bisect to try and find the revision
that added the problem (assuming you are using git)

Fred

> ERROR MESSAGE:
> --------------------------------------------------------------------------- ---------------------------
> Fast Debugger (ruby-debug-ide 0.4.9) listens on :xxxx
> => Booting WEBrick
> => Rails 2.3.5 application starting onhttp://0.0.0.0:3000
>         (erb):56
> Uncaught exception: compile error
> (erb):56: syntax error, unexpected $end, expecting ')'
> ; _erbout
>          ^
> --------------------------------------------------------------------------- ---------------------------
>
> Thanks for any assistance you can offer!

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment