action_not_foundというをgemを作ってみました

routesに定義されているけど、コントローラーにアクション定義されていないものをrakeタスクにて確認するrails用のgem

rake action_not_found

を実行すると

examples GET  /examples(.:format) examples#index
         POST /examples(.:format) examples#create #=> not found action
   tests GET  /tests(.:format)    tests#index #=> not found controller file
    root      /                   examples#index

4 routes, 1 not found actions, 1 not controller files

こんな感じで出力されます。

次のバージョンにて定義されていないアクションのroutes修正案を出力できたらいいなと

https://github.com/honbin/action_not_found

正規表現でやるのよくない気がしてきたし・・・テスト・・)