And one more time...
Find a way to make treeview widget an input element
Rewrite treeview helper in coffeescript
Implement select behavior for treeview function
Some refactoring for treeview custom code

Make treeview init function take options object instead of optional argument;
Treeview now takes full selector for hidden input field.
Make treeview hidden input selector more precise.
Write treeview_for_collection helper
Remove javascript_for_treeview helper
Add the capability to select to select a blank value for treeview
Treeview for Environments
Refactor treeview_for_collection to treeview_select