Tag Archives: api
Error Handling with XML and Authlogic
I was helping a friend integrate an API into the application. He is running Rails 2.3.4 with Authlogic. His authentication check method was the following: 1 2 3 4 5 6 7 8 def require_user unless current_user session[:return_to] = request.request_uri … Continue reading
InvalidAuthenticityToken Error in Rails
Working with a RESTful API in Rails can be a bit challenging at times. One such problem is the ActionController::InvalidAuthenticityToken error. This error is thrown when authenticity token is not present or invalid. (This is how Rails protects itself from … Continue reading
