Skip to content

Instantly share code, notes, and snippets.

View hisapy's full-sized avatar
🏠
Working from home

Hisa hisapy

🏠
Working from home
View GitHub Profile
@hisapy
hisapy / gist:5217163
Last active December 15, 2015 06:29
Template is missing Missing partial candidatos/thumbnails with {:locale=>[:es], :formats=>[:json], :handlers=>[:erb, :builder]}. Searched in: * "/Users/hisa/Documents/workspace/elecciones2013/app/views" * "/Users/hisa/.rvm/gems/ruby-1.9.3-p327@elecciones2013/gems/dynamic_sitemaps-1.0.8/app/views" * "/Users/hisa/.rvm/gems/ruby-1.9.3-p327@eleccion…
# This is inside application helper and it works well when request using HTML format
def thumbnails_tag objs
#Uncomment the line below to test when no much data available
# @listas.fill(@listas.first, 0..6)
thumb_span = 4
case @candidatos.length
when 1..3
thumb_span = 12 / @candidatos.length
else
thumb_span = 4
location ~ \.php$ {
try_files $uri =404;
fastcgi_index index.php;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}