meta_search
宝石を使いました。
controllers/feed_entries_controller.rb
は
class FeedEntriesController < ApplicationController
def index
@search = FeedEntry.search(params[:search])
@feed_entries = @search.all
end
end
および属性(ブールデータ型)Models/feed_entry.rb
があります:is_to_read
class FeedEntry < ActiveRecord::Base
attr_accessible :name, :summary, :url, :published_at, :guid, :is_to_read
end
そして私の質問は、ナビゲーションリンクを作成する方法+以下の条件でパラメータを渡す方法はviews/feed_entries/index.html.erb
?
条件:合格is_to_read(attribute) = true
し、でのみフェッチできるようにfeed_entries
するis_star = true.
助けてください