First:
Alt-F2
and type:
xfce4-panel
Think the best of others
flash[:notice] = "Correct things."
flash[:error] = "Alert things."
flash[:debug] = "Simple debug."
<%- flash.each do |name, msg| -%>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<%- end -%>
#debug{
display:none;
}
config.time_zone = 'Buenos Aires'
config.i18n.default_locale = :"es-ar"
<%= t('views.payment.show_title', :count => @foo.size, :bar => @foo.name) %>
es-ar:
views:
payment:
show_title:
zero: "Mostrando operación de pago y {{bar}}."
one: "Mostrando operación de pago y {{bar}}."
many: "Mostrando operación de pago y {{bar}}."
class Product < ActiveRecord::Base
...
validates_format_of :name, :with => /^([[:alpha:]]|[[:blank:]])+$/
function logger($msg){
if(!isset($GLOBALS['logger'])){
$GLOBALS['logger'] = fopen("/var/www/apps/logs/dev.log","a");
}
fwrite($GLOBALS['logger'],"$msg\n");
}
function request($id = ''){
logger("dir/file.php::request(id[".$id."])");
...
}