syntax error on good code

The following line from base.rb shows up as having the wrong number of params.
        @request_origin ||= "#{request.remote_ip} at #{Time.now.to_s(:db)}"
The error is indicated on the red code in the above line.

I am on RM 2.0.1 with JDK version 1.5.0_22

Regards, Guy

3 comments
Comment actions Permalink

This line fails as well (this line is in the middle of an erb file)
<img src="/images/x.gif" title="remove comment" onclick="remove_comment( <%= comment[:attr => 'id']%>, <%= comment[:attr => 'id']%>); return false;"/>

It highlights the space indicated above...again in red with an error, 'expression expected'

The code looks fine when rendered and runs fine as well, so I think it is OK.

Regards, Guy

0
Comment actions Permalink

Hi Guy,

The following line from base.rb shows up as having the wrong number of params.
        @request_origin ||= "#{request.remote_ip} at #{Time.now.to_s(:db)}"
The error is indicated on the red code in the above line.

What error message do you get here?
If it is about incorrect number of arguments, we have an issue for it: http://youtrack.jetbrains.net/issue/RUBY-5099

Regards,
Oleg

0
Comment actions Permalink

Yes, that one appears to be the bug you mentioned.  What about the other one?  That doesn't seem to be the same thing.

Regards, Guy

0

Please sign in to leave a comment.