Hi,
If u dont want to use any of the plugin then u need to write ur own 
action and need to do manually.

Like:

def current_user
   @current_user = User.find(session[:user_id])
end

Keep this action into ur application controller, It will return u the 
current logedin user object.
So u may use this like

def update_history
histories.create(:date=>Time.now, username=> current_user.name)
end

I hope it will work 4 u.
But instead of doing manually I suggest u must use Authlogic gem/plugin 
it will gives u other benefits also.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to