search for: studentscontrol

Displaying 2 results from an estimated 2 matches for "studentscontrol".

2007 Jul 17
12
Getting past my login system
...e correct page, but that does not seem to work. I tried a number of things, including the following: def do_login @user = User.find(:first, :conditions => [''username = ?'' , ''ryan''] ) session[:user] = @user.id post :login, :path => [] end describe StudentsController do it "should be successful" do do_login get :index response.should be_success end end This still results in being redirected to the login page at http://test.host/login when I want to go to http://test.host/students. Also, I realize I am actually doing a call on my...
2009 Aug 28
0
get this error: "A copy of * has been removed from the module tree but is still active!"
Hi, In one of my javascript functions I do two consecutive GET (ajax) requests in quick succession. I get the following error in Rails version 2.3.3 but not in 2.3.2. If I give a time lag (even 500ms) between to two requests the problem vanishes!!: ---- ArgumentError in StudentsController#index <pre>A copy of StudentsController has been removed from the module tree but is still active!</pre> Sometimes I also get ''A copy of AuthenticatedSystem has been removed from the module tree but is still active!'' error. Someone else has also been having a sim...