Problem is simple (solution is not): I would like to redirect to edit path after X model is created (I'll apply this to multiple models).
Are there any way to do it? I'm digging in source code, trying to find a reference to created instance, but can only find instance variables named after model (like @user
, which is harder to make generic).
So far, I found this answer which partially solves my problem: https://stackoverflow.com/a/22486025/312907
I'm still missing a reference to created model object.