I''m not sure if I understand the question correctly, but if I am, check
out what a friend and I came up with at
http://albert.bagasie.com/RailsTips/JumpBack
it allows you to do whatever it is you want to do and then redirect back
to the last get request that the app received or some other default action.
Dylan Egan wrote:
> Hi,
>
> Just trying to figure out the best way to handle dependencies when it
> comes to database input. Say I want to input a book, but it relies on
> a genre, artist and so on. At the moment if it only goes up one layer
> it works well as I am using the redirect_back_or_default method from
> login_generator. But if it were to go up any further it would only go
> down one layer.
>
> Should I just build on session[:redirect_url] and use levels, so
> session[:redirect_url][level + 1] = request.request_uri and on
> redirection it would go from highest number to lowest eliminating the
> levels each time it redirects?
>
> Or does anyone have or know of something that is already available to
> provide this function?
>
> Dylan.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>