you could use current_page with route to check the page. Ex: render "sidebar" unless current_page?(login_path)
Matt On Aug 13, 2014, at 2:20 AM, Roelof Wobben <[email protected]> wrote: > Hello, > > Allmost all pages have the same layout except the login page. > There the sidebar with menu is not visible. > > Is there a way to tell rails that when im on the login page the sidebar must > not be visible. > > Roelof > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/fc9ab3e6-e2ee-4417-adab-653d4f210fa5%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/C665FB77-45DD-4F81-9065-BAFC3096F77B%40gmail.com. For more options, visit https://groups.google.com/d/optout.

