Re: Accessing session variables

Taylor Strait
2006-11-15T08:31:02Z

> :userid => session[:id]

This really doesn''t work?  Try adding
''debug(session)'' to your layout to
make sure everything is right in your session variable before
submitting.

Also, if you want to simplify your creates, remove the '':date=>
Time.now'' and add a ''created_at'' field to your table.
Rails will
automatically fill this in when a record is added.