```ruby
class WelcomeController < ApplicationController
  def index
  end
end
```

Add recent and popular snippets to welcome controller
user
```ruby
class WelcomeController < ApplicationController
  def index
    @recent_snippets = Snippet.most_recent
    @popular_snippets = Snippet.most_popular
  end
end
```
assistant