Rails Error explained?


#1

I just got my first error, “ActionController::InvalidAuthenticityToken”.

I can’t seem to find any reference anywhere to an explanation of what
these errors actually mean (perhaps it has to do with manually adding a
view? The file just contains the words “Hello World”), altho there are
a few old posts about how to “turn it off”.


#2

Mk 27 wrote:

I can’t seem to find any reference anywhere to an explanation of what
these errors actually mean (perhaps it has to do with manually adding a
view? The file just contains the words “Hello World”), altho there are
a few old posts about how to “turn it off”.

Well adding this to the controller worked:

protect_from_forgery :only => [:create, :update, :destroy]

Also very disappointed that a web interface API does not include a
search function (!), meaning I had to use grep on the doc source –
which is very awkwardly laid out from a “grep” perspective.

I guess you can’t ask for everything.


#3

On 20/05/2009, at 1:45 AM, Mk 27 removed_email_address@domain.invalid
wrote:

Well adding this to the controller worked:

–~--~---------~–~----~------------~-------~–~----~

Re: the API, why can’t you use your browsers search feature?
Everything is on the one page - in frames.

Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
New video up now at http://sensei.zenunit.com/ real fastcgi rails
deploy process! Check it out now


#4

Julian L. wrote:

Re: the API, why can’t you use your browsers search feature?
Everything is on the one page - in frames.

That’s totally wacked. The API I am referring to involves quite a few
seperate files in usr/local/lib/ruby/doc/. There would be not much
purpose to frames if they were not multiple pages. Most html’ified API
documentation does not have a search function, I was just hoping for a
bit more from ruby :wink:

Mostly my complaint would be that there does not seem to be anywhere
describing the meaning of the server errors.


#5

On Tue, May 19, 2009 at 8:45 AM, Mk 27
removed_email_address@domain.invalid wrote:

Also very disappointed that a web interface API does not include a
search function (!), meaning I had to use grep

“had to”? you meant “totally enjoyed the opportunity to”, right? :slight_smile:

Anyway, see: http://railsapi.com/


Hassan S. ------------------------ removed_email_address@domain.invalid


#6

Hassan S. wrote:

Anyway, see: http://railsapi.com/


Hassan S. ------------------------ removed_email_address@domain.invalid

This is a dead link. I presume you mean the same thing that’s at
localhost:8808?


#7

On Tue, May 19, 2009 at 10:31 AM, Mk 27
removed_email_address@domain.invalid wrote:

Anyway, see: http://railsapi.com/

This is a dead link.

? It works for me.

I presume you mean the same thing that’s at localhost:8808?

I do not.


Hassan S. ------------------------ removed_email_address@domain.invalid


#8

I thought you meant API.rubyonrails.org

Which server errors?

Blog: http://random8.zenunit.com/
Twitter: http://twitter.com/random8r
Learn: http://sensei.zenunit.com/
New video up now at http://sensei.zenunit.com/ real fastcgi rails
deploy process! Check it out now!

On 20/05/2009, at 3:29 AM, Mk 27 removed_email_address@domain.invalid


#9

On 19 May 2009, at 18:31, Mk 27 wrote:

Hassan S. wrote:

Anyway, see: http://railsapi.com/


Hassan S. ------------------------ removed_email_address@domain.invalid

This is a dead link. I presume you mean the same thing that’s at
localhost:8808?

works for me.

The security guide http://guides.rubyonrails.org/ discusses csrf
protection.

Fred


#10

Julian L. wrote:

I thought you meant API.rubyonrails.org

Which server errors?

It was because of the link in the post (don’t use <>?), I just tried the
actual address and that looks good. THANKS.

Also thanks Fred for the “guides”

: