Double render in rails

Hi all,

Is double render or redirect possible in rails…?

Please tell me if possible…

Thanks

On 5 June 2012 15:22, kingston.s [email protected] wrote:

Hi all,

Is double render or redirect possible in rails…?

Could you provide a example of what you’re trying to achieve, please.

it isn’t,

but you can render twice with a conditional.

if foo
render…
else
render…
end


Oscar Del B.
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

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!

2012/6/5 Oscar Del B. [email protected]