{"action":"created","issue":{"url":"https://api.github.com/repos/jnunemaker/flipper/issues/80","labels_url":"https://api.github.com/repos/jnunemaker/flipper/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/jnunemaker/flipper/issues/80/comments","events_url":"https://api.github.com/repos/jnunemaker/flipper/issues/80/events","html_url":"https://github.com/jnunemaker/flipper/issues/80","id":103569698,"number":80,"title":"Some feature names collide with Action routes","user":{"login":"carlthuringer","id":328491,"avatar_url":"https://avatars.githubusercontent.com/u/328491?v=3","gravatar_id":"","url":"https://api.github.com/users/carlthuringer","html_url":"https://github.com/carlthuringer","followers_url":"https://api.github.com/users/carlthuringer/followers","following_url":"https://api.github.com/users/carlthuringer/following{/other_user}","gists_url":"https://api.github.com/users/carlthuringer/gists{/gist_id}","starred_url":"https://api.github.com/users/carlthuringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlthuringer/subscriptions","organizations_url":"https://api.github.com/users/carlthuringer/orgs","repos_url":"https://api.github.com/users/carlthuringer/repos","events_url":"https://api.github.com/users/carlthuringer/events{/privacy}","received_events_url":"https://api.github.com/users/carlthuringer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T18:41:15Z","updated_at":"2015-08-27T19:16:09Z","closed_at":"2015-08-27T19:14:05Z","body":"I ran into an issue implementing my first feature, `refactor-images`. The application would crash with a bizarre error: `Flipper::UI::RequestMethodNotSupported - Flipper::UI::Actions::File does not support request method \"post\"`\r\nThis happened when I tried to add a specific actor using the UI.\r\n\r\nThis made me think that I had broken it somehow, or otherwise set it up incorrectly, but my only mistake was treading upon [A Regular Expression](https://github.com/jnunemaker/flipper/blob/master/lib/flipper/ui/actions/file.rb#L9)\r\n\r\nI discovered my error by the expedient combo of debugging, stepping, and `print @action_collection.method(:action_for_request).source`. But of course I think more common consumers of the gem may be completely confused and give up or post an issue.\r\n\r\nShouldn't you specify the route match more strictly, rather than matching any part of the full path? \r\n```ruby\r\nroute %r{\\a#{base_path}(images|css|js|octicons|fonts)/.*\\Z}\r\n```\r\nElse, no features containing these five words will be permitted."},"comment":{"url":"https://api.github.com/repos/jnunemaker/flipper/issues/comments/135527807","html_url":"https://github.com/jnunemaker/flipper/issues/80#issuecomment-135527807","issue_url":"https://api.github.com/repos/jnunemaker/flipper/issues/80","id":135527807,"user":{"login":"jnunemaker","id":235,"avatar_url":"https://avatars.githubusercontent.com/u/235?v=3","gravatar_id":"","url":"https://api.github.com/users/jnunemaker","html_url":"https://github.com/jnunemaker","followers_url":"https://api.github.com/users/jnunemaker/followers","following_url":"https://api.github.com/users/jnunemaker/following{/other_user}","gists_url":"https://api.github.com/users/jnunemaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jnunemaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnunemaker/subscriptions","organizations_url":"https://api.github.com/users/jnunemaker/orgs","repos_url":"https://api.github.com/users/jnunemaker/repos","events_url":"https://api.github.com/users/jnunemaker/events{/privacy}","received_events_url":"https://api.github.com/users/jnunemaker/received_events","type":"User","site_admin":true},"created_at":"2015-08-27T19:16:09Z","updated_at":"2015-08-27T19:16:09Z","body":"That stinks. Sorry. Added a spec and fixed it by adjusting the order of the action collection and thus route processing. Released 0.7.1 which should solve your issue."}}