added link and page of companies we like - index only - green test suite
added tag column to posts table - green test suite
class Post < ActiveRecord::Base
  belongs_to :user,
    inverse_of: :posts

  validates :user, presence: true
  validates :image, presence: true
  validates :description, length: { maximum: 160 }
  validates :tag, length: { maximum: 140 }

  mount_uploader :image, PostImageUploader

  # def tag_strip_for_form(string)
  #   string = string.gsub(' ','').split('#')
  #   string.all? do |word|
  #     word.
  #   end
  #   string = [#][a-zA-Z]+
  # end

  def self.by_recency
    order(created_at: :desc)
  end

  def self.search(search)
    if search
      find(:all, :conditions => ['tag LIKE ?', "%#{search}%"])
    else
      find(:all)
    end
  end

end
added search functionality to homepage, restyled home page, fixed test suite to correctly order test images, added image slider to home page