lib/controllers/features.rb in wackamole-0.0.8 vs lib/controllers/features.rb in wackamole-0.0.9
- old
+ new
@@ -20,11 +20,12 @@
post "/features/search" do
begin
@filter.search_terms = params[:search_filter][:search_terms]
@features = Wackamole::Feature.paginate_tops( @filter.to_conds )
rescue => boom
- logger.error boom
- flash[:error] = boom
+ puts boom
+ flash_it!( :error, boom )
+ @filter.search_terms = nil
@features = [].paginate
end
erb :"features/filter.js", :layout => false
end
\ No newline at end of file