Skip to content

Instantly share code, notes, and snippets.

View Inviz's full-sized avatar

Yaroslaff Fedin Inviz

  • Idealic
  • Ubud, Bali
View GitHub Profile
123123123errr
require Merb.root / 'app/models/document_blob/document_blob'
require Merb.root / 'app/models/contribution/comment'
require Merb.root / 'app/models/contribution/version'
class Contribution
class Version
class Comment
#
# Behaviors
---
# This is a sample database file for the DataMapper ORM
development: &defaults
# These are the settings for repository :default
adapter: postgresql
database: orwik
encoding: utf8
user: postgres
test:
Problems that were never solved in previous Orwik design
* Textile help
We had them in forms, but they never felt like they are in the right place.
* Flash messages
They were implemented much time after the design was made.
Problems:
class Contributions < Application
#
# Behaviors
#
include ContributionHelpers
include PersonHelpers
include PersonalProfileHelpers
include CommentHelpers
upstream orwik_local_app_servers {
server 127.0.0.1:4000;
}
server {
#
# Server name
#
server_name orwik.local *.orwik.local orwik.home *.orwik.home;
upstream orwik_local_app_servers {
server 127.0.0.1:4000;
}
server {
#
# Server name
#
server_name orwik.local *.orwik.local orwik.home *.orwik.home;
upstream orwik_local_app_servers {
server 127.0.0.1:4000;
}
server {
#
# Server name
#
server_name orwik.local *.orwik.local orwik.home *.orwik.home;
user invizko staff;
worker_processes 1;
error_log logs/error.log debug_http;
pid logs/nginx.pid;
events {
worker_connections 64;
}
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"edit", "id"=>"36", "controller"=>"Contributions"}
~ (0.000166) SET backslash_quote = off
~ (0.000091) SET standard_conforming_strings = on
~ (0.000112) SET client_min_messages = warning
~ (0.036105) SELECT "id", "created_at", "updated_at", "email", "first_name", "last_name", "middle_name", "name", "literary_initials", "inverted_literary_initials", "username", "remember_token", "remember_token_expires_at", "superuser", "random_token", "crypted_password", "salt", "activation_key", "activated" FROM "people" WHERE ("id" = 5) ORDER BY "id" LIMIT 1
~ (0.000657) SELECT "author_id", "id", "created_at", "updated_at", "title", "public", "description", "html_description", "display_all_versions" FROM "contributions" WHERE ("id" = 36) ORDER BY "id" LIMIT 1
~ MemCacheError (No connection to server (localhost:11211 DEAD (Errno::ECONNREFUSED: Connection refused - connect(2)), will retry at Thu Oct 08 20:20:51 +0700 2009)): No connection to server (localhost