search for: user_sessions_controller

Displaying 6 results from an estimated 6 matches for "user_sessions_controller".

2010 Jul 19
6
Setting a root_url
...url using map.root in "routes.rb". The issue I''m currently having is as follows: I walking through this Rails cast regarding Authlogic: http://railscasts.com/episodes/160-authlogic I decided that I make my map.root the "login" page, that is, the index.html.erb of the user_sessions_controller. So, what I did is typed the following in the "routes.rb": map.root :controller => "user_sessions" But, get the following: http://pastie.org/1050272 When I changed: @user_sessions = UserSession.all To: @user_sessions = UserSession.find[:all], I got the following: http:...
2010 Sep 09
1
NoMethodError in User sessionsController#create
...acks'' .../vendor/plugins/authlogic/lib/authlogic/session/callbacks.rb:83:in `validate'' .../vendor/plugins/authlogic/lib/authlogic/session/validation.rb:64:in `valid?'' .../vendor/plugins/authlogic/lib/authlogic/session/existence.rb:65:in `save'' .../app/controllers/user_sessions_controller.rb:13:in `create'' .../app/controllers/user_sessions_controller.rb:12:in `create'' I''ve installed the ruby version of Netbeans, and the only output from ''gem list'' is: *** LOCAL GEMS *** net-ldap (0.1.1) rack (1.0.1) rake (0.8.7) sqlite3-ruby (1.3.1 x86-...
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
...resources I was able to find on the web, but I''m facing a problem. Once I''ve generated the user_sessions controller and mapped the login and logout routes, I get an error if I try to load the login page : uninitialized constant UserSessionsController::UserSession app/controllers/user_sessions_controller.rb:11:in `new'' The user_sessions model is really simple : class UserSession < Authlogic::Session::Base end But it looks like this class declaration is not considered by Rails... Does anyone have an idea ? Thx by advance for your help. Romain -- You received this message because yo...
2009 Aug 02
13
NoMethodError in User sessionsController#create - Authlogic
Hi, I''m beginner in rails, and I wanted to add to my simple application Authlogic. So I''ve watched http://railscasts.com/episodes/160-authlogic and step-by-step done everything. And almost everything works fine, except login in. After registration new user is automatically logged in, he can edit his profile, but after clicking logout and trying to login again I get error
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
In my user_sessions_controller: class UserSessionsController < ApplicationController before_filter :require_no_user, :only => [:create, :new] before_filter :require_user, :only => :destroy def new @user_session = UserSession.new @message = "Hello." end def create @user_session = Us...
2011 Jun 09
8
Fail to call
...ass WelcomeController < ApplicationController def hi @current_user if (@current_user) @welr = ''¡Bienvenido'' + @current_user + '' a nuestra web!'' else @weli = "¡Bienvenido invitado, no dude en registrarse!" end end end #user_sessions_controller class UserSessionsController < ApplicationController def new @user_session = UserSession.new end def create @user_session = UserSession.new(params[:user_session]) if @user_session.save flash[:notice] = "Estás dentro de nuestro sistema" redirect_to root_url...