Skip to content

wanglian/tree_select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeSelect
==========

TreeSelect provides a form select helper for tree-like date structure.

install:
script/plugin install git://github.com/wanglian/tree_select.git

prequisites:
1 acts_as_tree plugin
2 The default javascript libs must be include in the view:
  <%= javascript_include_tag :defaults %>

Example
=======
1 generator
script/generate tree_select region Country State City
rake db:migrate

2 add to routes.rb:
map.resources :regions

3 in view:
<%= region_select "user[region_id]" %>
or
<%= region_select "user[region_id]", nil, :readonly => true, :complete_must => false %>

demo: http://tree-select.heroku.com/


TODO: tests and docs

Copyright (c) 2008 Allen Wang, released under the MIT license

About

form select helper for tree-like data structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages