Skip to content

Commit

Permalink
crudify documentation improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Šimánek committed Apr 15, 2011
1 parent f9a778d commit 3204a86
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/lib/refinery/crud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
# Simply override any methods in your action controller you want to be customised
# Don't forget to add:
# resources :plural_model_name_here
# or for scoped:
# scope(:as => 'module_module', :module => 'module_name') do
# resources :plural_model_name_here
# end
# to your routes.rb file.
# Full documentation about CRUD and resources go here:
# -> http://caboo.se/doc/classes/ActionController/Resources.html#M003716
# -> http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Resources.html#method-i-resources
# Example (add to your controller):
# crudify :foo, {:title_attribute => 'name'}
# crudify :foo, {:title_attribute => 'name'} for CRUD on Foo model
# crudify 'foo/bar', :{title_attribute => 'name'} for CRUD on Foo::Bar model

module Refinery
module Crud
Expand Down

0 comments on commit 3204a86

Please sign in to comment.