开发者

How can I figure out which line of my routes.rb file has Rails 2 grammar?

开发者 https://www.devze.com 2023-02-02 22:21 出处:网络
I\'ve converted my (pretty large) routes.rb file to Rails 3 style, but I\'m still getting deprecation warnings. I suspect there is some option or flag in there that I missed, but I don\'t know where i

I've converted my (pretty large) routes.rb file to Rails 3 style, but I'm still getting deprecation warnings. I suspect there is some option or flag in there that I missed, but I don't know where it is.

Is there a trick I can do to figure out where it's co开发者_StackOverflow中文版ming from? I suppose I could iteratively comment out blocks of it and then run the checker on it… ugh.


Rather than it being your own config/routes.rb file, it could be one provided by a gem such as declarative_authorization or ckeditor. Check the gems you're using on the project if they contain a config/routes.rb file.

If none of them contain one, then please show us your config/routes.rb.


Use the Rails Upgrade plugin to check for outdated syntax

0

精彩评论

暂无评论...
验证码 换一张
取 消