Skip to content

Instantly share code, notes, and snippets.

[Sun Aug 26 06:25:04 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.7 with Suhosin-Patch configured -- resuming normal operations
[Sun Aug 26 11:03:46 2012] [error] [client 96.254.171.2] script '/home/ubuntu/web/azenv.php' not found or unable to stat
[Mon Aug 27 11:05:18 2012] [error] [client 96.254.171.2] script '/home/ubuntu/web/azenv.php' not found or unable to stat
[Mon Aug 27 14:36:58 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/muieblackcat
[Mon Aug 27 14:36:58 2012] [error] [client 202.29.34.16] script '/home/ubuntu/web/index.php' not found or unable to stat
[Mon Aug 27 14:36:59 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/admin
[Mon Aug 27 14:37:03 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/admin
[Mon Aug 27 14:37:04 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/db
[Mon Aug 27 14:37:05 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/dbadmin
[Mon Aug 2
class Project::FinancialStatementsController < Project::BaseController
load_and_authorize_resource
include ::Project::PrjProjectsHelper
def update
@project = Project.find(params[:project_id])
success = true
partial_info = {}
sheet = nil
class FinancialStatement < ActiveRecord::Base
# Financial statement does not use task anymore. This association will be removed.
belongs_to :task
# Phase actually is a FinancialStatement in the client sheet.
belongs_to :phase, :class_name => "FinancialStatement",
:foreign_key => "phase_id",
:conditions => ["sheet_type = ?", "ClientSheet"]
belongs_to :sheet, :polymorphic => true
- content_for :sub_title do
= @project.name
- content_for :left_panel do
= render :partial => 'shared/left_panel', :locals => {:target => "service_sheet"}
%table.list-wrapper.list
%thead
%tr
%th{:style => "width:25%;"}
%legend.clearfix
.section= t('clientsheet.financial_statement')
= link_to "Valider", "javascript://", :class => "button medium", :id => "fs-validate"
.dot-bar
.fs-inner
%span.error{:style => "color: red;font-size: 12px;margin-left: -85px;"}= object.errors[:financial_statements]
= nested_form_for(object, :url => project_financial_statement_path(object.project), :html => {:class => "simple_form", :id => "financial-statement-form"}) do |f|
= hidden_field_tag :target, target
= hidden_field_tag :target_id, object.id
= f.hidden_field :dummy, :value => false
@tinnguyenz
tinnguyenz / instructions.md
Created August 2, 2017 15:13 — forked from stungeye/instructions.md
SSL Using Let's Encrypt for Rails/Passenger/Nginx

After installing certbot:

sudo service nginx stop
sudo ./certbot-auto certonly --standalone -d sub.example.com --standalone-supported-challenges http-01
sudo service nginx start

Modified the ngnix site conf:

server {

listen 80;

require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do