In rails, I often have the need to declare a partial that is used across many models. For example, there is a partial where I would like a form wrapped around a button, such that I can just pass in a controller, an action, and an object and that object is sent to that controller's action. Now this is not specific to any of my models. It doesn't seem fitting to declare this partial's file (_processor_button.html.erb) in a model's folder.
What do you suggest is the best place to put this file, and how to call it from there, and do you suggest a totally different way of approaching the example mentioned above?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…