This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
NewerOlder