Rails Error explained?

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”.

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.

On 20/05/2009, at 1:45 AM, Mk 27 [email protected]
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

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.

On Tue, May 19, 2009 at 8:45 AM, Mk 27
[email protected] 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. ------------------------ [email protected]

Hassan S. wrote:

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


Hassan S. ------------------------ [email protected]

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

On Tue, May 19, 2009 at 10:31 AM, Mk 27
[email protected] 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. ------------------------ [email protected]

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 [email protected]

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

Hassan S. wrote:

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


Hassan S. ------------------------ [email protected]

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

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”

: