class WelcomeController < ApplicationController
  def index
  end
end

class WelcomeController < ApplicationController
  def index
    @recent_snippets = Snippet.most_recent
    @popular_snippets = Snippet.most_popular
  end
end

Add recent and popular snippets to welcome controller
Add recent and popular snippets to welcome controller
