class TexteditorController < ApplicationController def change @txt=params[:edit] session[:text] = @txt redirect_to :action => "index" end end