clearance integration issue

5 views
Skip to first unread message

Me

unread,
Feb 16, 2010, 12:32:46 PM2/16/10
to rpx_now_gem
I have this:

def rpx_token
raise "hackers?" unless data = RPXNow.user_data(params[:token])
self.current_user = User.find_by_identifier(data[:identifier]) ||
User.create!(data)
redirect_to '/'
end

in my sessions controller. When I log into google for example I get
this error:

No route matches "/clearance/session/rpx_token" with {:method=>:post}

Ideas?

Michael Grosser

unread,
Feb 16, 2010, 3:55:46 PM2/16/10
to rpx_n...@googlegroups.com
did you try:
/sessions/rpx_token ?
/clearance/sessions/rpx_token ?

in case you do not have a catch-all-route: did you add the action in rouses ?

2010/2/16 Me <chab...@gmail.com>



--
--Michael

Chris Habgood

unread,
Feb 16, 2010, 3:58:53 PM2/16/10
to rpx_n...@googlegroups.com
I am using RoR with Clearance for authentication locally.

ya actually I am now getting this error:

Clearance is not missing constant User!

Michael Grosser

unread,
Feb 17, 2010, 3:05:56 AM2/17/10
to rpx_n...@googlegroups.com
dunno where this comes from :<

2010/2/16 Chris Habgood <chab...@gmail.com>



--
--Michael
Reply all
Reply to author
Forward
0 new messages