Select vs. select_tag


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

One way would be to put @timesheet.user_id =
session[:logged_in_user_id_or_whatever]
in the controller action for this view.
select() just defaults the selection to the current value returned by
the method. In this case, @timesheet.user_id


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails