title: undefined local variable or method `root_path' for #<#<Class:0xc0d0c44>:0xc0be918>
body: <p>I was trying to work the Devise confirmable email, but now errors appear and it does not work (before the changes, it worked well).</p>
  
  <p>If anyone can help me identify it, I'd appreciate it.</p>
  
  <p>I just was trying: <a href="http://www.bogotobogo.com/RubyOnRails/RubyOnRails_Devise_Authentication_Sending_Confirmation_Email.php" rel="nofollow">http://www.bogotobogo.com/RubyOnRails/RubyOnRails_Devise_Authentication_Sending_Confirmation_Email.php</a></p>
  
  <p>NameError in Registrations#create </p>
  
  <p>undefined local variable or method `root_path' for #&lt;#:0xc0be918>
  Did you mean?  font_path</p>
  
  <p>In the view  mark, after try register:</p>
  
  <pre><code> &lt;li&gt;&lt;%= link_to "Start", root_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>In the route:</p>
  
  <pre><code>Rails.application.routes.draw do
  
     devise_for :usuarios, controllers: {registrations: 'registrations', omniauth_callbacks: "omniauth_callbacks"}
  
     root 'welcome#index'
     get "welcome/index"
  
     get ':controller(/:action(/:id))(.:format)'
     post ':controller(/:action(/:id))(.:format)'
  
  end
  </code></pre>
  
  <p>also</p>
  
  <pre><code>app/views/devise/mailer/confirmation_instructions.html.erb:12:in `_app_views_devise_mailer_confirmation_instructions_html_erb___614633226_101093210'
  app/controllers/registrations_controller.rb:6:in `create'
  </code></pre>
  
  <p>rake routes</p>
  
  <pre><code>                             Prefix Verb     URI Pattern                                Controller#Action
                  new_usuario_session GET      /usuarios/sign_in(.:format)                devise/sessions#new
                      usuario_session POST     /usuarios/sign_in(.:format)                devise/sessions#create
              destroy_usuario_session DELETE   /usuarios/sign_out(.:format)               devise/sessions#destroy
                     usuario_password POST     /usuarios/password(.:format)               devise/passwords#create
                 new_usuario_password GET      /usuarios/password/new(.:format)           devise/passwords#new
                edit_usuario_password GET      /usuarios/password/edit(.:format)          devise/passwords#edit
                                      PATCH    /usuarios/password(.:format)               devise/passwords#update
                                      PUT      /usuarios/password(.:format)               devise/passwords#update
          cancel_usuario_registration GET      /usuarios/cancel(.:format)                 registrations#cancel
                 usuario_registration POST     /usuarios(.:format)                        registrations#create
             new_usuario_registration GET      /usuarios/sign_up(.:format)                registrations#new
            edit_usuario_registration GET      /usuarios/edit(.:format)                   registrations#edit
                                      PATCH    /usuarios(.:format)                        registrations#update
                                      PUT      /usuarios(.:format)                        registrations#update
                                      DELETE   /usuarios(.:format)                        registrations#destroy
                 usuario_confirmation POST     /usuarios/confirmation(.:format)           devise/confirmations#create
             new_usuario_confirmation GET      /usuarios/confirmation/new(.:format)       devise/confirmations#new
                                      GET      /usuarios/confirmation(.:format)           devise/confirmations#show
  usuario_facebook_omniauth_authorize GET|POST /usuarios/auth/facebook(.:format)          omniauth_callbacks#passthru
   usuario_facebook_omniauth_callback GET|POST /usuarios/auth/facebook/callback(.:format) omniauth_callbacks#facebook
                                 root GET      /                                          welcome#index
                        welcome_index GET      /welcome/index(.:format)                   welcome#index
                                      GET      /:controller(/:action(/:id))(.:format)     :controller#:action
                                      POST     /:controller(/:action(/:id))(.:format)     :controller#:action
  </code></pre>
  
  <p>Enviroment:</p>
  
  <pre><code>config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
    config.action_mailer.perform_deliveries = true
  
    config.action_mailer.raise_delivery_errors = true
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      user_name:      ENV['uclave.cdcht'],
      password:       ENV[''],
      domain:         ENV['gmail'],
      address:       'smtp.gmail.com',
      port:          '587',
      authentication: :plain,
      enable_starttls_auto: true
    }
  </code></pre>
  
  <p>users = usuarios (spanish)</p>