Setting up devise / mongomapper on Rails 2.3.8 -
i trying basic authentication working using devise , mongomapper. following instructions here: http://johnwyles.com/2010/03/15/sessions-in-mongodb-using-mongomapper-and-devise/ (except deferring routes.rb changes until after generators run address errors)
i got far getting following paths work: /users/sign_up :: /users/sign_in :: /users/password/new :: /users/confirmation/new
however, trying hit "/" gives me error
nameerror in usercontroller#sign_in uninitialized constant usercontroller rails_root: /users/bentrevino/documents/dev/devisetest application trace | framework trace | full trace /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:364:in `constantize' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `each' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `constantize' /library/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' /library/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:444:in `recognize' /library/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:437:in `call'
after submit sign-up request, error
runtimeerror in registrations#create showing /library/ruby/gems/1.8/gems/devise-1.0.8/app/views/devise_mailer/confirmation_instructions.html.erb line #5 raised: missing host link to! please provide :host parameter or set default_url_options[:host] extracted source (around line #5): 2: 3: <p>you can confirm account through link below:</p> 4: 5: <p><%= link_to 'confirm account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
does know might going on here? thanks! ben....
at least 1 issue having have not created controller root route specified in config/routes.rb file. run call rails generate controller [name] make new controller. specify name in config/routes.rb file our root route.
Comments
Post a Comment