Accessing rails private/protected methods through javascript or jquery

362 Views Asked by At

I know I can access public controller actions by doing something like this with jquery:

$("#stuff").load("/controller/action");

But how do I access the private/protected actions in a controller using jquery or javascript?

1

There are 1 best solutions below

0
On BEST ANSWER

You can create an action in the controller file which will call your private or protected action. A direct call is not possible.