Forum: Ruby on Rails select vs. select_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dylan M. (Guest)
on 2006-01-19 05:28
(Received via mailing list)
_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails
Wilson B. (Guest)
on 2006-01-19 19:21
(Received via mailing list)
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
Dylan M. (Guest)
on 2006-01-19 19:54
(Received via mailing list)
_______________________________________________
Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails
This topic is locked and can not be replied to.