Skip to content

Instantly share code, notes, and snippets.

class InboxProductOrderView extends Backbone.View
tagName: "div"
className: "list_view_item inbox_item"
template: _.template($('#inbox-product-order').html())
events:
'click': 'show_inbox_product_order'
render: ->
$(@el).html @template(@model.toJSON())
@
show_inbox_product_order: ->
require 'spec_helper'
describe "ScheduleMailer" do
before(:each) do
debugger
1==1
#@schedule = Factory(:schedule, :schedule_on => Date.today)
end
# schedule publishing email tests
/Users/eisenhorn/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide --port 63027 -- /Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/bin/rspec /Users/eisenhorn/Projects/mtt/mtt/spec/controllers/schedule_mailer_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "ScheduleMailer schedule publishing should render successfully"
Testing started at 19:16 ...
Fast Debugger (ruby-debug-ide 0.4.17.beta8, ruby-debug-base 0.10.5.jb2) listens on 127.0.0.1:63027
No DRb server is running. Running in local process instead ...
DEPRECATION WARNING: RAILS_DEFAULT_LOGGER is deprecated. Please use ::Rails.logger. (called from /Users/eisenhorn/Projects/mtt/mtt/config/environment.rb:5)
/Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/gems/actionpack-3.0.3/lib/action_dispatch/http/mime_type.rb:98
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
class WebMailViewer < Sinatra::Base
helpers do
include Rack::Utils
def path_prefix
request.env['SCRIPT_NAME']
end
def url_path(*path_parts)
[ path_prefix, path_parts ].join("/").squeeze('/')
server {
listen 80;
server_name .cafedigital.ru;
root /var/www/cafedigital/public_html;
index index.php index.html;
location / {
index index.php;
if (!-e $request_filename) {
# config/initializers/resque.rb
class Authentication
def initialize(app)
@app = app
end
def call(env)
# accessing our AR-model
user = env['warden'].authenticate!(:database_authenticatable, :rememberable, :scope => :user)
FactoryGirl.define do
factory :domain do
name { Faker::Internet.domain_name }
type { Domain::ALLOWED_TYPES.sample }
end
end
~/Projects/mtt/mtt git:(gera-dev) (ree-1.8.7-2011.03@rails3)» cat ~/.zshrc
export LC_ALL=en_US.UTF-8
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.