class LinkController < ApplicationController
def index
@value=flash[:what]
end
def show_param
id=params[:id]
if id.=="1" then
@value= "link 1"
else
@value="another link"
end
flash[:what]=@value
redirect_to :action => "index"
end
end