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". -- Posted via http://www.ruby-forum.com/.
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. -- Posted via http://www.ruby-forum.com/.
On 20/05/2009, at 1:45 AM, Mk 27 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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. > -- > Posted via http://www.ruby-forum.com/. > > --~--~---------~--~----~------------~-------~--~----~ >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
On Tue, May 19, 2009 at 8:45 AM, Mk 27 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
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. -- Posted via http://www.ruby-forum.com/.
Hassan Schroeder wrote:> Anyway, see: <http://railsapi.com/> > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgThis is a dead link. I presume you mean the same thing that''s at localhost:8808? -- Posted via http://www.ruby-forum.com/.
On 19 May 2009, at 18:31, Mk 27 wrote:> > Hassan Schroeder wrote: > >> Anyway, see: <http://railsapi.com/> >> >> -- >> Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > 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> > -- > Posted via http://www.ruby-forum.com/. > > >
On Tue, May 19, 2009 at 10:31 AM, Mk 27 <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
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-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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. > > -- > Posted via http://www.ruby-forum.com/. > > >
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" : -- Posted via http://www.ruby-forum.com/.