Hi,
I am sorry if this question has been answered before but I am unable to
find the answer.
What I would like to do is display the content of a page depending in
the url, for example
Whatever.UK would display:
content one
Whatever.UK would display:
content two
I know how to do this in php but the template that I am using is written
in ruby.
Please could someone help.
On Sat, Jun 27, 2009 at 6:54 PM, Henry T.
[email protected]wrote:
http://whatever.co.uk/package?chosen=somethingelse would display:
content two
I know how to do this in php but the template that I am using is written
in ruby.
You’re going to have to provide some more context. Are you using rails
or
some other web framework?
I asked the company which language the template is written in and the
tech support guy said:
“I believe it is written in ruby on the rails”
On Jun 27, 1:54 pm, Henry T. [email protected] wrote:
content two
I know how to do this in php but the template that I am using is written
in ruby.
Please could someone help.
Posted viahttp://www.ruby-forum.com/.
So, how do you do this in PHP? I am trying to do this in php.
Michael Warnick wrote:
On Jun 27, 1:54�pm, Henry T. [email protected] wrote:
content two
I know how to do this in php but the template that I am using is written
in ruby.
Please could someone help.
Posted viahttp://www.ruby-forum.com/.
So, how do you do this in PHP? I am trying to do this in php.
if ($url== “http://whatever.co.uk/package?chosen=something”)
{
echo “
hello
”;
}
elseif ($url== “
http://whatever.co.uk/package?chosen=something”)
}
echo “
goodbye
”;
}
Henry T. wrote:
I asked the company which language the template is written in and the
tech support guy said:
“I believe it is written in ruby on the rails”
The language is ruby. ruby on rails is a piece of software written in
ruby.
Michael Warnick wrote:
On Jun 27, 1:54�pm, Henry T. [email protected] wrote:
content two
I know how to do this in php but the template that I am using is written
in ruby.
Please could someone help.
Posted viahttp://www.ruby-forum.com/.
So, how do you do this in PHP? I am trying to do this in php.
This is how I do it in PHP
if (isset($_GET[‘chosen’]) && ($_GET[‘chosen’] == ‘something’)) {
echo “Hi”;
}
if (isset($_GET[‘chosen’]) && ($_GET[‘chosen’] == ‘somethingelse’)) {
echo “There”;
}
I still have no idea how to do it with Ruby