Importent Notes;
1.Default Action with Column name in Active Admin:
actions name: "Actions"
1.Add Filter with Assosiation in Model [Active Admin]
class Review < ActiveRecord::Base
belongs_to :event
validates_presence_of :review
end
class Event < ActiveRecord::Base
has_many :reviews
end
App/Admin/review.rb
filter :event_street_address, as: :string, :label => 'City'
Comments
Post a Comment