Displaying 3 results from an estimated 3 matches for "new_admin_session_path".
2013 Mar 20
2
Rspec + Devise + BaseController
...(:each) do
@admin = FactoryGirl.create(:admin)
@request.env["devise.mapping"] = Devise.mappings[:admin]
end
context "when admin is not logged in" do
it "redirect admin to sign_in path" do
get :index
response.should redirect_to new_admin_session_path
end
end
end
end
#####################################################
I''ve already inclueded Devise::TestHelpers on my spec_helper.rb and I''m
getting this error when running this spec:
#####################################################
Admins::BaseController...
2010 May 21
0
Authlogic and Single table inheritance
...h.create.notice'')
redirect_to admin_dashboard_path
else
render :action => :new
end
end
def destroy
current_user_session.destroy
flash[:notice] = t(''user_sessions.flash.destroy.notice'')
redirect_to new_admin_session_path
end
end
class Superadmin::SuperadminSessionsController <
ApplicationController
layout ''superadmin''
def new
@user_session = UserSession.new
end
def create
@user_session = UserSession.new(params[:user_session])
if @...
2013 Jul 08
4
Devise routes
hi...
i am using two devises in rails 4 application,i need the routes for
those devises.
rails 4 is new feature for routes
--
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 unsubscribe from this group and stop receiving emails from it, send an email to