This project is archived and is in readonly mode.
render :template observes locals, so should render :action
-
Pratik
I'm getting ActionView::MissingTemplate exception when running tests.
-
Tim Haines
Hi Pratik, I was expecting I'd made atleast 1 newb mistake somewhere. The method I used to generate the patch hasn't included the new template I created. I'll upload a new one once I figure out the right git command.
-
Repository
- State changed from new to resolved
(from [f5052dd8a39099e4930faafe9b01e63ced2f6391]) Make sure render :template works with :locals. [#524 state:resolved]
Signed-off-by: Pratik Naik
-
Repository
(from [6303ba0c12511b1021ffc84240b43e06e93c9269]) Make sure render :template works with :locals. [#524 state:resolved]
Signed-off-by: Pratik Naik
-
tribalvibes
- Title changed from render :template observes locals to render :template observes locals, so should render :action
Actually this is still a problem as render :action does not allow you to pass a :locals hash, which it should for consistency as all the other flavors of render allow this.
Please re-open this and (someone) let's patch render :action to also accept a :locals hash. Any problems with this? See also #1522.
