このようなサンプル
sample-01という名前でrailsのアプリケーションを作成し、helloとhelloworldのアクションがついたhelloコントローラーを作成します。
> rails new sample-01
> cd sample-01
> rails g hello hello helloworld
コントローラー作成後、以下のファイルを編集します。
app/views/hello/hello.html.erb
<h1>Hello#hello</h1>
<p>Find me in app/views/hello/hello.html.erb</p>
<% form_tag :action => 'helloworld' do %>
名前を入力してください。<br />
<%= text_field :hello, :name %><br />
<%= submit_tag "送信" %>
<% end %>
app/views/hello/helloworld.html.erb
<h1>Hello#helloworld</h1>
<p>Find me in app/views/hello/helloworld.html.erb</p>
ようこそ <%= params[:hello][:name] %> さん。
最後にルート設定を行って実行します。