ruby on rails - Authentication fails with Uploadify + Paperclip + Clearance -


i have uploadify working paperclip , authentication, using this guide.

i've got past nasty invalidauthenticationtoken errors passing authentication_token , session information parameters , using middleware create cookie header them, controller authentication filter still failing , current_user not available.

has ideas why might be?

i looked through clearance plugin , seems come down user_from_cookie method, finds user based on cookies[:remember_token]

  def user_from_cookie     if token = cookies[:remember_token]       ::user.find_by_remember_token(token)     end   end 

so i'm thinking middleware should create remember_token cookie header?

any appreciated, proving bit me!

i don't know if issue, run similar one, had setup 2 auth level, 1 basic http , 1 devise, session worked beautifully devise , all, never got around basic http... hope helps.

alex


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -