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
请先登录再写评论。
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
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.
It seems that this particular problem was fixed and fix will be available in coming RubyMine 3.1.1 bugfix update soon.
Regards,
Oleg
Thank you very much for the update Oleg.
:)Thanks Nazar and Oleg - much appreciated