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
http://whatever.co.uk/package?chosen=something would display:
content one
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.
Please could someone help.
···
--
Posted via http://www.ruby-forum.com/.
You're going to have to provide some more context. Are you using rails or
some other web framework?
···
On Sat, Jun 27, 2009 at 6:54 PM, Henry Tudor <henry@tudoritsolutions.co.uk>wrote:
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.
So, how do you do this in PHP? I am trying to do this in php.
···
On Jun 27, 1:54 pm, Henry Tudor <he...@tudoritsolutions.co.uk> wrote:
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 display:
content onehttp://whatever.co.uk/package?chosen=somethingelsewould 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.
--
Posted viahttp://www.ruby-forum.com/.
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"
···
--
Posted via http://www.ruby-forum.com/.
7stud
(7stud --)
5
Michael Warnick 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== "Whatever.UK)
{
echo "<div>hello</div>";
}
elseif ($url== "Whatever.UK)
}
echo "<div>goodbye</div>";
}
···
On Jun 27, 1:54�pm, Henry Tudor <he...@tudoritsolutions.co.uk> wrote:
--
Posted via http://www.ruby-forum.com/\.
Michael Warnick 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
···
On Jun 27, 1:54�pm, Henry Tudor <he...@tudoritsolutions.co.uk> wrote:
--
Posted via http://www.ruby-forum.com/\.
7stud
(7stud --)
7
Henry Tudor 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.
···
--
Posted via http://www.ruby-forum.com/\.