class HelloController < ApplicationController
def there
end
def here
end
end
// File: app\views\hello\there.rhtml:
<html>
<head>
<title>Using Two Views</title>
</head>
<body>
<br>
<%= link_to "Go to here.", :action => "here" %>
<br>
<br>
This is an active view in a Ruby on Rails application.
</body>
</html>
Start the WEBrick server: ruby script/server
Navigate to http://localhost:3000/hello/there;