Re: [Rails] Check URL

2010-05-20 Thread Philip Hallstrom
On May 20, 2010, at 3:05 PM, David Zhu wrote: > Is there a way to do an if/else case to check the URL? for example- > > <% if URL = "http://www.google.com"; %> > > Hi, your URL's GOOGLE > > <% else %> > > You URL isn't GOOGLE > > <% end %> > > Of course that method is just a mockup, does an

[Rails] Check URL

2010-05-20 Thread David Zhu
Is there a way to do an if/else case to check the URL? for example- <% if URL = "http://www.google.com"; %> Hi, your URL's GOOGLE <% else %> You URL isn't GOOGLE <% end %> Of course that method is just a mockup, does anyone know the real syntax? Thanks -- You received this message because y