You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking it may be cool to be able to render a template file instead of a controller action. Would play nice for specific nested resource use cases.
Since Rails allow this the change would be pretty trivial : line 203 of responder.rb
I think it's an acceptable change to make the responder more flexible, but I'm not 100% sure if it would have any bad side effects in the rest of the responder logic that takes the current action in account to set the flash messages or do redirections - maybe if we introduce a new view option would help avoid these issues?
Feel free to set up a PR so we can discuss on top of the code :)
Hello,
I was thinking it may be cool to be able to render a template file instead of a controller action. Would play nice for specific nested resource use cases.
Since Rails allow this the change would be pretty trivial : line 203 of
responder.rb
In order to allow this kind of behavior :
What do you think ?
The text was updated successfully, but these errors were encountered: