Hi all,
Is double render or redirect possible in rails..?
Please tell me if possible....
Thanks
Hi all,
Is double render or redirect possible in rails..?
Please tell me if possible....
Thanks
it isn’t,
but you can render twice with a conditional.
if foo
render…
else
render…
end
Hi all,
Is double render or redirect possible in rails…?
Could you provide a example of what you’re trying to achieve, please.
Hi,
It is possible to have as many renders/redirects in your code as long as only one of them executes.
If more than one is executed you will end up wit a double render error.
Best Regards!