search for: usersessionscontroller

Displaying 13 results from an estimated 13 matches for "usersessionscontroller".

Did you mean: usersessioncontroller
2009 Oct 18
4
NoMethodError in User sessionsController#new
...arching but with no success. I tried setting the current_user method in Application_controller to protected and not private, on the recommendation in Stack Overflow. Error in browser----------------- NoMethodError in User sessionsController#new undefined method `require_no_user'' for #<UserSessionsController: 0x24fc700> Error in terminal------------------ Processing UserSessionsController#new (for 127.0.0.1 at 2009-10-17 23:26:38) [GET] Parameters: {"action"=>"new", "controller"=>"user_sessions"} NoMethodError (undefined method `require_no_user'...
2010 Jun 10
0
uninitialized constant UserSessionsController::UserSession
This is the error I got. I am working with authlogic and was able to register the user. But when I create user_sessions and try to login, I got his error. Guys can u help me out in this. Thnak you, Siva -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2010 May 25
2
Rails 2.3.6 and Authlogic 2.1.4 or 2.1.3
In the test environment, logging out and back in is not working for me. The log for the first login looks like this: Processing UserSessionsController#create (for 127.0.0.1 at 2010-05-24 19:53:57) [POST] Parameters: {"user_session"=>{"remember_me"=>"true", "password"=>"[FILTERED]", "login"=>"test"}, "action"=>"create", "controller"...
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
...p:// railscasts.com/episodes/160-authlogic), and the 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...
2010 Nov 07
1
Strange authlogic logout behavior
I am using authlogic for my application''s authentication. If I decide to login with an account and then immediately logout, I get an error. Unknown action The action ''show'' could not be found for UserSessionsController The server log in development says: Started GET "/user_session" for 127.0.0.1 at Sun Nov 07 13:28:31 -0800 2010 AbstractController::ActionNotFound (The action ''show'' could not be found for UserSessionsController): Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0....
2010 Nov 15
0
Problem testing Authlogic UserSession
...sion.rb class UserSession < Authlogic::Session::Base end user_sessions_controller_spec.rb require ''spec_helper'' def user_session_create @user = Factory.create(:user) @user_session = UserSession.create(:email => @user.email, :password => @user.password) end describe UserSessionsController do before(:each) do :activate_authlogic end describe "create a user session" do it "creates a user session using the user credentials" do user_session_create @user_session.email.should == @user.email end end describe "find a user session&...
2009 Dec 03
2
AuthLogic Question - one time password (persistence_token) - what config is required to use this???
...uot;acts_as_authentic " required in each of my own models? When I enter a URL in the browser directly to one of my own model resources following the above I see in the logs: (a) initial request - Redirected to http://localhost:3000/user_session/new (b) and then for this redirect: Processing UserSessionsController#new (for 127.0.0.1 at 2009-12-03 06:14:24) [GET] Parameters: {"action"=>"new", "controller"=>"user_sessions"} User Columns (3.4ms) SHOW FIELDS FROM `users` User Indexes (0.9ms) SHOW KEYS FROM `users` Rendering template within layouts/applicati...
2011 Jun 01
7
desperate, errors with file upload
hello, i implementing a file upload using paperclip plugin. i getting the following error [1] when uploading a file. I''m using the gems rails v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the model like [3]. Interesting is that i get two different errors, on the localhost with webrick it says: Status: 500 Internal Server Error no marshal_dump is defined for class
2010 May 21
0
Authlogic and Single table inheritance
Hi, I have some models such as: class User < ActiveRecord::Base acts_as_authentic end class Admin < User end class Superadmin < Admin end And some controllers such as: 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] = t(''user_sessions.flash.create.notice'') red...
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 = UserSession.new(params[:user_sess...
2008 Dec 16
20
step definitons to check login
I am working with the authlogic gem and trying to create a simple login test from cucumber features. The feature statement is: Given the user is not logged in The step definition for this is confounding me. In the application_controller the authlogic tutorial recommends the following: private def require_user unless current_user store_location flash[:notice] =
2009 Aug 02
13
NoMethodError in User sessionsController#create - Authlogic
...fter registration new user is automatically logged in, he can edit his profile, but after clicking logout and trying to login again I get error NoMethodError in User sessionsController#create undefined method `mb_chars'' for "rzepak":String My user_session_controller.rb: 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] = "Successfully logged in." redirect_to root_url else render :action => ''new...
2011 Jun 09
8
Fail to call
...icationController 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 else render :actio...