Displaying 6 results from an estimated 6 matches for "new_session_path".
Did you mean:
new_sessions_path
2008 Jan 16
5
named route new_session not working
Anyone have any idea why a named route would NOT work? I did rake
routes to make sure it was there and it was but for some reason
new_session doesn''t work.
--
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,
2008 Jul 12
1
Re: Re stful_authentication, Internet Explorer, and unwanted http basic dialog
...ated, IE doesn''t seem to send the right accept
> headers (if any) when fetching a URL without an explicit extension in
> the URL. For instance if you have a /users/4 URL, it will bring up
> the basic authentication dialog, but /users/4.html will correctly
> redirect to new_session_path.
>
> -J.
>
> On Jun 26, 2008, at 11:53 PM, Chris Bartlett wrote:
>
>>
>> The issue is in this method of authenticated_system.rb:
>>
>> def access_denied
>> respond_to do |format|
>> format.html do
>> store_location...
2013 Jul 04
3
Rspec devise, testing extended RegistrationController action destroy
...m the RegistrationController, to soft
delete users instead of really deleting them from the database.
def destroy
# raise resouce.inspect # this is just to see if the test hits the
action
resource.soft_delete
set_flash_message :notice, :destroyed
sign_out resource
redirect_to new_session_path(resource)
end
This is working on the browser.
When I try to write a test to the delete action, I get the test as passed
but does not execute the code. Prove of that is I have put a raise on the
action and it did not raise it. I have also tried to test the ''new action''
just...
2007 Jan 13
0
before_filter not executed in functional tests
Hi,
I have a before_filter ''authorize'' defined in the application controller
that checks for a user in the session. However, when I test a controller
(that has before_filter ''authorize'') like this:
def test_new_without_login
get :new
assert_redirected_to new_session_path
end
the fails because the response is ''success'' instead. When I set a
breakpoint in the ''authorize'' method I see that it is in fact never
executed.
Do I need to do something so that methods on other controllers are
executed, or is this a bug (I am using edge ra...
2008 Nov 06
0
Restore password without session initialized
...er or
generate a new password. When you try to loggin in there, if the
password is no correct, the application shows the link "Remenber
password", having the route /users/remind. The problem is when a try to
go to this link, appear an error like this:
undefined local variable or method `new_session_path'' for
#<UsersController:0x6a8cedc>
lib/authenticated_system.rb:68:in `access_denied''
lib/authenticated_system.rb:65:in `access_denied''
lib/role_requirement_system.rb:116:in `access_denied''
lib/role_requirement_system.rb:121:in `check_roles''
I alr...
2010 May 21
0
Authlogic and Single table inheritance
...ssions.flash.create.notice'')
redirect_to root_path
else
render :action => :new
end
end
def destroy
current_user_session.destroy
flash[:notice] = t(''user_sessions.flash.destroy.notice'')
redirect_to new_session_path
end
end
class Admin::AdminSessionsController < ApplicationController
layout ''admin''
def new
@user_session = UserSession.new
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.sa...