Roar is coming
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
class PostsController < ApplicationController roar do per_page 5 order "published_at DESC, created_at" filters do search :text, [:title,:body] recent_dates :created_at end table do edit :title column :status date :published_at delete end form do text_field :title text_area :body select_field :status, :choices=>Status.to_select check_box :published, :name=>"Published?" end end end |