Feature/64 activity search

search box clean up done. good to go.
Also @activities are a collection so will likely never be `nil?`. Use
`blank?` (which indirectly checks for `empty?` arrays) instead.

Khurram Virani


On Sun, Jun 8, 2014 at 6:18 PM, ReNet <notifications@github.com> wrote:

> In app/controllers/activities_controller.rb:
>
> > @@ -8,4 +8,12 @@ def show
> >      @previous_activity = @activity.previous
> >    end
> >
> > +  def search
> > +    @activities = Activity.search(params[:query])
> > +    if @activities.nil?
> > +    	flash[:alert] = "No results for your search request."
> > +    	redirect_to :back
>
> I understand the use case now, thanks!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lighthouse-labs/laser_shark/pull/53/files#r13527563>.
>