In Controller
class FeedEntriesController < ApplicationController
def index
@search = FeedEntry.search(params[:is_star])
@feed_entries = @search.page(params[:page])
@app_keys = AppKey.all
end
end
In View - feed_entries/index.html.erb
<%= link_to "Stared", {:controller => "feed_entries", :action => "index", :is_star => false } %>
feed_entries table contain is_star:boolean attribute. So, I just want to pass the parameter is_star == true into the params[:is_star].
But the above code is not working. Please some one help me.
If, I click the Stared link. I am getting error like below in the browser:
undefined method `stringify_keys!' for "false":String
:is_star => "false"FeedEntry#searchmethod?