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.
助けてください