pu8pla
Last Updated: February 25, 2016
·
478
· vjt
B9896d170716175a070c8c03cda3b97f

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 :-)

Say Thanks
Respond