DrBoolean / CrudLinks

Dynamically creates links for crud actions.

This URL has Read+Write access

DrBoolean (author)
Wed May 06 12:11:33 -0700 2009
commit  41249ac66ac665fad33d3c9033b82025722ec9d6
tree    128b267886a63658c29b19a2731b7eb7eaf70032
name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
Creats a <ul class="crud_links"> with links as list items.
Use like so: <%= CrudLinks.new(self, @controller, @link_options).to_html {yield :yr_blk} %>

Options are +controller_name+ and +hide+.

 To change behavior in a view: 

 crudlinks(:hide => true, :controller_name => 'foo') do
   link_to 'home', admin_path
   link_to 'vacation', vacation_path
 end