Note that there are some explanatory texts on larger screens.

plurals
  1. PORails Devise generate error
    primarykey
    data
    text
    <p>I'm fairly new to rails and I'm trying to set up devise and omniauth to allow users to login to my website with the Facebook API. I'm using this tutorial <a href="http://www.ruby-on-rails-outsourcing.com/articles/2012/01/20/adding-facebook-auth-to-rails-3-1-app/" rel="nofollow">http://www.ruby-on-rails-outsourcing.com/articles/2012/01/20/adding-facebook-auth-to-rails-3-1-app/</a> to do this. However, when I try to run <code>rails generate devise User</code> , I get this error: <code>undefined local variable or method config for main:Object (NameError)</code>. How do I fix this?</p> <p>devise.rb file :</p> <pre><code>Devise.setup do |config| config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com" require 'devise/orm/active_record' config.case_insensitive_keys = [ :email ] config.strip_whitespace_keys = [ :email ] config.skip_session_storage = [:http_auth] config.stretches = Rails.env.test? ? 1 : 10 config.reconfirmable = true config.reset_password_within = 6.hours config.sign_out_via = :delete </code></pre> <p>development.rb:</p> <pre><code>*******::Application.configure do config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' } config.cache_classes = false config.whiny_nils = true config.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_mailer.raise_delivery_errors = false config.active_support.deprecation = :log config.action_dispatch.best_standards_support = :builtin config.active_record.mass_assignment_sanitizer = :strict config.active_record.auto_explain_threshold_in_seconds = 0.5 config.assets.compress = false config.assets.debug = true end </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload