ActionView::TemplateError (undefined method `size' for nil:NilClass) on line #1 of app/views/index/_index.html.erb:
1: <% if @publications.size > 0%>
2:
3: <% if @nbr_result > 10 %>
4: <% if controller.action_name == "home" %>
app/views/index/_index.html.erb:1
app/views/index/index.html.erb:1
app/controllers/index_controller.rb:78:in `trouver'
unicorn (4.8.3) lib/unicorn/http_server.rb:576:in `process_client'
unicorn (4.8.3) lib/unicorn/http_server.rb:670:in `worker_loop'
unicorn (4.8.3) lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
unicorn (4.8.3) lib/unicorn/http_server.rb:140:in `start'
unicorn (4.8.3) bin/unicorn:126
/home/projets2coeur/.rvm/gems/ruby-1.8.7-head/bin/unicorn:23:in `load'
/home/projets2coeur/.rvm/gems/ruby-1.8.7-head/bin/unicorn:23