So I want to do this:
save_to_library(params) if params[:commit] == "lib"
but save_to_library apparently doesn’t take any arguments.
how do actions get params if they don’t take arguments?
(I know this action works when I link to it directly… just trying to streamline usability)
Your controller processes the params and makes them available to you through an accesor method, they are available to your whole controller without the need to pass it around in method parameters.