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/users/show.html.erb:24
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:536:in `maintain_worker_count'
unicorn (4.8.3) lib/unicorn/http_server.rb:294:in `join'
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