Forum: Ruby on Rails Rails Error explained?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-19 16:26
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".
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-19 17:45
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.
3131fcea0a711e5ad89c8d49cc9253b4?d=identicon&s=25 Julian Leviston (Guest)
on 2009-05-19 18:40
(Received via mailing list)
On 20/05/2009, at 1:45 AM, Mk 27 <rails-mailing-list@andreas-s.net>
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
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-05-19 18:45
(Received via mailing list)
On Tue, May 19, 2009 at 8:45 AM, Mk 27
<rails-mailing-list@andreas-s.net> 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? :-)

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

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-19 19:29
Julian Leviston 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 ;)

Mostly my complaint would be that there does not seem to be anywhere
describing the meaning of the server errors.
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-19 19:31
Hassan Schroeder wrote:

> Anyway, see: <http://railsapi.com/>
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

This is a dead link.  I presume you mean the same thing that's at
localhost:8808?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-05-19 19:38
(Received via mailing list)
On 19 May 2009, at 18:31, Mk 27 wrote:

>
> Hassan Schroeder wrote:
>
>> Anyway, see: <http://railsapi.com/>
>>
>> --
>> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>
> 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
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-05-19 19:40
(Received via mailing list)
On Tue, May 19, 2009 at 10:31 AM, Mk 27
<rails-mailing-list@andreas-s.net> 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 Schroeder ------------------------ hassan.schroeder@gmail.com
3131fcea0a711e5ad89c8d49cc9253b4?d=identicon&s=25 Julian Leviston (Guest)
on 2009-05-19 19:51
(Received via mailing list)
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 <rails-mailing-list@andreas-s.net>
68814ed988eee4f21b2cd07353e5e445?d=identicon&s=25 Mk 27 (mk27)
on 2009-05-19 20:08
Julian Leviston 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"

 :
This topic is locked and can not be replied to.