Last Updated: February 25, 2016
·
706
· vjt

Invoking helpers from API controller actions

You have an API endpoint that needs to update little parts of the page via JS, and creating a partial is really overkill.

You can use view_context in your controller to access all your and Rails helpers.

Most useful in ActiveAdmin Member/Collection Actions :-)