I understand that render :action only renders an action’s view. But I was wondering.. Is there no easy way to execute the code in that action before its view is rendered?
I understand that render :action only renders an action’s view. But I was wondering..
Share
If you’re trying to reuse logic in two different controllers why not just pull that logic out of its current controller into something more reusable like a helper method or class?