Im not sure what you mean by controller names > protect_from_forgery
is used inside each controller to control specific actions, if its a webservice you creating and it need authentication etc, i suggest api keys, thats hashed, so they have to send that with each request On 12 Dec 2009, at 00:24, doug livesey wrote: > Unfortunately, the app is mainly (but not all) a web service, and as I use > RESTful methods, I can't be selective with actions. > Unless there's some way to specify controller names in the except option, as > well? > > 2009/12/11 Alex Barlow <[email protected]> > If you have one action that is only json it is safe to... > > protect_from_forgery :except => [:get_json] > > Alex > > On 11 Dec 2009, at 23:56, doug livesey wrote: > >> Hi -- does anyone know how to get the request_from_forgery method to ignore >> JSON calls, like it does for XML? >> Cheers, >> Doug. >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "NWRUG" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/nwrug-members?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
