Redirect Extra Argument

Rails 2.35

RubyMine 3.1

Not sure about this...   The redirect below is being red-lined as having an extra argument.    The code works fine and I don't remember this coming up in RubyMine 3.0.   Thanks!

          respond_to do |format|
            format.html { redirect_to directory_path(user.directory_id) }
            format.xml  { head :ok }
          end

5 comments
Comment actions Permalink

Hi Reno,

Could you please try performing goto declaration on redirect_to call? Where does it navigate to? Are there any other errors show on these lines of code?

Regards,
Oleg

0
Comment actions Permalink

This sounds like it might relate to a bug I've reported here. RM 3.1 seems to have an issue with passing parameters to routes.

0
Comment actions Permalink

It seems that this particular problem was fixed and fix will be available in coming RubyMine 3.1.1 bugfix update soon.

Regards,
Oleg

0
Comment actions Permalink

Thank you very much for the update Oleg.

:)
0
Comment actions Permalink

Thanks Nazar and Oleg - much appreciated

0

Please sign in to leave a comment.