If you're using restful_authentication plugin, check out the method called redirect_back_or_default. Even otherwise, I think thats what you want. Its a simple short method, try getting your hands on it.
On Aug 31, 7:09 pm, Ale Ds <rails-mailing-l...@andreas-s.net> wrote: > Hi, > I have a best practice question: > > In my web apps you have to log in to show a certain Item, but you can > show the item's list without log in. > > Here are the steps: > Items list page -> click on certain Item -> show "log in" page -> show > Item's page > > How can I do to store the "next_page" information ? > > whith flash[:next_page] I had some problem (because of reload current > page) > > Any suggest ? > > thank you, > Alessandro > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---