Re: [Rails] Where do I put code when I share a partial between two controllers

2011-03-30 Thread Walter Lee Davis
It doesn't matter all that much. If it has a stronger affinity for one of the controllers, then put it in that controller's view folder, and then in the other spot where you need to reference it, just put the leading /modelname/partialname on the render argument. So you have views

[Rails] Where do I put code when I share a partial between two controllers

2011-03-30 Thread Albert CatalĂ 
Hello, I'm new in Rails and much more in MVC, and I'm absolutly lost. The question is more clearly this: If I have a partial, than uses a controller/method (called X) for requery itself via JS, and this partial is viewed in two screens ( two controllers, menu and sarch). where do you place this c