title: Rails 4 strong parameters
body: <p>It seems to be funny how Rails 4 deals with strong parameters:</p>
  
  <pre><code>def UsersController &lt; ActionController::Base
    def update
      @user = current_user
  
      if @user.update_attributes(user_profile_parameters)
        redirect_to home_path, notice:  "Your profile has been successfully updated."
      else
        render action: "edit"
      end
    end
  
    private
    def user_profile_parameters
      params.require(:user).permit(:name, :password, :password_confirmation, :email)
    end
  end
  </code></pre>
  
  <p>I wonder, isn't it possible in Rails 3? Yes, instead of only 1 line, it would take 3 lines, perhaps. But, there is nothing new there, it's just a manually created list of allowed parameters, in fact, it's just a hash, isn't it? Or is there any more deep purpose in it?</p>