RailsCasts Pro episodes are now free!

Learn more or hide this

sampath's Profile

GitHub User: sampathaya

Site: sampathm.blogspot.com

Comments by sampath

Avatar

Thanks for the screen cast. this is very helpful.

I have problem. I'm using
rails 3 ,
device 1.2.rc ,
token_authentication

I need to create a new object and save in the database through active resource.

book = Book.create(:name=>'abc',:auth_token=>'423423423423')

but this returned 401 error. (unautherized). if I removed the authenticate_user! command, then this will work.

but I need to create a row with auth-token. is there any one done this?.

please reply.

thanks