search for: log_in

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

Did you mean: log_io
2006 Jul 30
1
custom routing in simply_restful
Is there information on how I can define custom paths/actions other than these: /users/new GET new /users/id;edit GET edit so for example I can have my own: /users/log_in GET log_in /users/id;process_log_in GET process_log_in So far I cannot find any documentations on these at all. -- Posted via http://www.ruby-forum.com/.
2009 Jun 19
1
Session Reset when clicking back button of the browser
hi friends... here is my query.... kindly give ur views pls... after logging into the application,i redirect to company list page.now when user clicks the browser back button it should show the login page.that is i want to destroy the session.so in my login controller i have written code below. def log_in if request.get? reset_session end end in my routes.rb map.root :controller => "login",:action => "log_in" but when i click browser back button it shows login page but it doesnot go to the log_in action. Any helps .... Thanks a bunch -- Posted via http://www.ruby...
2006 Jan 30
5
Functional tests and dealing with login before_filter
Hi all, I''m curious as to how you do functional testing on the controllers if, within the ApplicationController, I have a before_filter :authorize, :except => :login, where the private authorize method checks for session[:user]. I can''t do "post :login", because that method is in a different controller. I tried setting session[:user] directly in the setup
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/ shoulda/) on a project and I saw some things that would be really nice to see in rspec, namely the should_ methods, and especially the should_be_restful method. Do these go against the rspec goals at all? Or could an ambitious programmer go to town implementing these for rspec_on_rails? Nathan Sutton fowlduck at
2007 Oct 04
5
Specs and Libs
How would I go about writing specs for a lib, particularly one with all protected and private methods. I''m trying to spec the AuthenticatedSystem library from the rails restful_authentication plugin: http://pastie.caboo.se/103625 Also, when you''re mocking objects, a side-effect is helping you define the api of the object. Is there a way to get all the behaviors that
2006 Jul 09
1
Accessing the name of a controller''s module?
...not know the right syntax. My redirect code is: unless session[:user] session[:intended_location] = action_name session[:intended_controller] = controller_name flash[:notice] = "You must log in to continue." redirect_to :controller => "/account", :action => "log_in" end Then once the action I''m redirected to is completed I use this code to return the user to the appropriate original page: redirect_to :action => session[:intended_action], :controller => session[:intended_controller] Do I need a line that works lik...