[Rails] Re: if on certain page display, else display

2008-09-09 Thread Dan Paul
found the answer if anyone else is looking for it <% if controller.controller_name == "pages" %> <% else %> <% end %> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Re: if on certain page display, else display

2008-09-09 Thread Dan Paul
Yeah I guess I can do that, but its just I didn't want to have to create a new layout just for one simple line of code. But thanks for the suggestion if I cant find a way to do it I will do it that way. --~--~-~--~~~---~--~~ You received this message because you ar

[Rails] Re: if on certain page display, else display

2008-09-09 Thread Shandy Nantz
Dan Paul wrote: > Hello, first off sorry i am new and a dumbass but I need help with > this. > > In my view/application file i have some css and I want a certain bit > of css displayed if a user is in one controller but another type of > css to be display if they are in another controller. I mad