Rails Simple Form - No route matches
<p>Each user can create a number of blogs and, when they log in, they are presented with a list of their blogs and a button next to each as below:</p>

<pre><code>= simple_form_for activate_blog_path(blog.id), method: :put do |f|
  = hidden_field_tag :active, value: true
  = f.button :submit
</code></pre>

<p>Even though the path exists in routes, I'm still getting this error message:</p>

<pre><code>No route matches [PUT] "/"
</code></pre>

<p>routes.rb:</p>

<pre><code>resources :users
resources :blogs do
  member do
    get :activate
    put :activate
  end
end
root 'pages#index'
</code></pre>

<p>rails routes:</p>

<pre><code>       Prefix Verb   URI Pattern                    Controller#Action
        users GET    /users(.:format)               users#index
              POST   /users(.:format)               users#create
     new_user GET    /users/new(.:format)           users#new
    edit_user GET    /users/:id/edit(.:format)      users#edit
         user GET    /users/:id(.:format)           users#show
              PATCH  /users/:id(.:format)           users#update
              PUT    /users/:id(.:format)           users#update
              DELETE /users/:id(.:format)           users#destroy
activate_blog GET    /blogs/:id/activate(.:format)  blogs#activate
              PUT    /blogs/:id/activate(.:format)  blogs#activate
        blogs GET    /blogs(.:format)               blogs#index
              POST   /blogs(.:format)               blogs#create
     new_blog GET    /blogs/new(.:format)           blogs#new
    edit_blog GET    /blogs/:id/edit(.:format)      blogs#edit
         blog GET    /blogs/:id(.:format)           blogs#show
              PATCH  /blogs/:id(.:format)           blogs#update
              PUT    /blogs/:id(.:format)           blogs#update
              DELETE /blogs/:id(.:format)           blogs#destroy
         root GET    /                              pages#index
</code></pre>

<p>blogs_controller.rb:</p>

<pre><code>  def activate
    @blog.active = true
    @blog.save
    redirect_to root_path
  end
</code></pre>

<p>What am I doing wrong here?</p>