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