{"action":"created","issue":{"url":"https://api.github.com/repos/plataformatec/devise/issues/4052","repository_url":"https://api.github.com/repos/plataformatec/devise","labels_url":"https://api.github.com/repos/plataformatec/devise/issues/4052/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/devise/issues/4052/comments","events_url":"https://api.github.com/repos/plataformatec/devise/issues/4052/events","html_url":"https://github.com/plataformatec/devise/issues/4052","id":149942968,"number":4052,"title":"After update to 4.0.0 NoMethodError ","user":{"login":"kvokka","id":15954013,"avatar_url":"https://avatars.githubusercontent.com/u/15954013?v=3","gravatar_id":"","url":"https://api.github.com/users/kvokka","html_url":"https://github.com/kvokka","followers_url":"https://api.github.com/users/kvokka/followers","following_url":"https://api.github.com/users/kvokka/following{/other_user}","gists_url":"https://api.github.com/users/kvokka/gists{/gist_id}","starred_url":"https://api.github.com/users/kvokka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvokka/subscriptions","organizations_url":"https://api.github.com/users/kvokka/orgs","repos_url":"https://api.github.com/users/kvokka/repos","events_url":"https://api.github.com/users/kvokka/events{/privacy}","received_events_url":"https://api.github.com/users/kvokka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/plataformatec/devise/labels/Needs%20more%20info","name":"Needs more info","color":"fff87a"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-21T02:41:11Z","updated_at":"2016-04-26T18:12:48Z","closed_at":null,"body":"Hello, I use Rails 4.2.6, after update to devise 4.0.0 I getting thic trace in production\r\n```\r\nI, [2016-04-21T05:28:15.947140 #1923]  INFO -- : source=rack-timeout id=7410cdda976188b553add50bdcf071aa timeout=10000ms service=41ms state=completed\r\nI, [2016-04-21T05:28:38.403515 #1923]  INFO -- : source=rack-timeout id=f8e5e48a9c4b91d867ae6eb9618a5b65 timeout=10000ms state=ready\r\nD, [2016-04-21T05:28:38.403830 #1923] DEBUG -- : source=rack-timeout id=f8e5e48a9c4b91d867ae6eb9618a5b65 timeout=10000ms service=0ms state=active\r\nI, [2016-04-21T05:28:38.404167 #1923]  INFO -- : Started GET \"/admin/login\" for 62.117.225.42 at 2016-04-21 05:28:38 +0300\r\nI, [2016-04-21T05:28:38.405712 #1923]  INFO -- : Processing by ActiveAdmin::Devise::SessionsController#new as HTML\r\nI, [2016-04-21T05:28:38.408130 #1923]  INFO -- : Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)\r\nF, [2016-04-21T05:28:38.410500 #1923] FATAL -- : \r\nNoMethodError (private method `permit' called for #<Devise::ParameterSanitizer:0x00000005f3d1a8>):\r\n  app/controllers/application_controller.rb:13:in `configure_permitted_parameters'\r\n```\r\n\r\nMy application.rb chunk\r\n```\r\n  before_action :configure_permitted_parameters, if: :devise_controller?\r\n  # before_action :authenticate_user!\r\n\r\n  def configure_permitted_parameters\r\n    devise_parameter_sanitizer.permit(:sign_in) do |user_params|\r\n      user_params.permit(:email, :password, :remember_me)\r\n    end\r\n\r\n    devise_parameter_sanitizer.permit(:sign_up) do |user_params|\r\n      user_params.permit(:email, :password, :password_confirmation)\r\n    end\r\n  end\r\n  protected :configure_permitted_parameters\r\n```\r\n\r\nafter switch back from `permit` to `for` method devise came alive."},"comment":{"url":"https://api.github.com/repos/plataformatec/devise/issues/comments/214833559","html_url":"https://github.com/plataformatec/devise/issues/4052#issuecomment-214833559","issue_url":"https://api.github.com/repos/plataformatec/devise/issues/4052","id":214833559,"user":{"login":"ulissesalmeida","id":867308,"avatar_url":"https://avatars.githubusercontent.com/u/867308?v=3","gravatar_id":"","url":"https://api.github.com/users/ulissesalmeida","html_url":"https://github.com/ulissesalmeida","followers_url":"https://api.github.com/users/ulissesalmeida/followers","following_url":"https://api.github.com/users/ulissesalmeida/following{/other_user}","gists_url":"https://api.github.com/users/ulissesalmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/ulissesalmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulissesalmeida/subscriptions","organizations_url":"https://api.github.com/users/ulissesalmeida/orgs","repos_url":"https://api.github.com/users/ulissesalmeida/repos","events_url":"https://api.github.com/users/ulissesalmeida/events{/privacy}","received_events_url":"https://api.github.com/users/ulissesalmeida/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T18:12:48Z","updated_at":"2016-04-26T18:12:48Z","body":"@kvokka Could you try the version `4.0.1`, I think it is fixed."}}