Hi all, I'' wondering how you handle your login/logout form for your website. A login/logout form is something you sometimes place on almost all pages. How do you handle this? Do you make a shared partial or is there an other and better way to show this on all your pages? Thanks Stijn --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Tarscher wrote:> Hi all, > > I'' wondering how you handle your login/logout form for your website. A > login/logout form is something you sometimes place on almost all > pages. How do you handle this? Do you make a shared partial or is > there an other and better way to show this on all your pages? > > Thanks > Stijn<%= render :partial => "/controllerWhereTheLoginPartialIs/partial_name" %> pretty simple hein ? partial arent attach to any controller or smth, you can call them from anywhere -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 5, 5:08 am, "Tarscher" <tarsc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I'' wondering how you handle your login/logout form for your website. A > login/logout form is something you sometimes place on almost all > pages. How do you handle this? Do you make a shared partial or is > there an other and better way to show this on all your pages? > > Thanks > StijnIf you really want it on all of your pages, you can just render it from within your layout. Jeff softiesonrails.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---