README.md in puffer-0.0.15 vs README.md in puffer-0.0.16
- old
+ new
@@ -63,11 +63,13 @@
<pre>rails g puffer:controller Post</pre>
This will generate a kind of:
<pre>
class Admin::PostsController < Puffer::Base
- before_filter :i_didnt_forget_to_protect_this
+ setup do
+ group :posts
+ end
index do
field :id
field :user_id
field :title
@@ -82,10 +84,11 @@
field :title
field :body
field :created_at
field :updated_at
end
+
end
</pre>
Puffer controller`s DSL creates all the actions we need. Next step - routing
@@ -116,10 +119,10 @@
<pre>
class Moderator::PostsController < Puffer::Base
before_filter :require_moderator
- config do
+ setup do
destroy false
group :posting
end
index do