Skip to content

Instantly share code, notes, and snippets.

INFO [668f04fb] Running RBENV_ROOT=~/.rbenv RBENV_VERSION=1.9.3-p484 ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile on ssh.alwaysdata.com
DEBUG [668f04fb] Command: cd ~/www_rails/prof/releases/20140516083753 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=1.9.3-p484 RAILS_ENV=production RBENV_ROOT=~/.rbenv RBENV_VERSION=1.9.3-p484 ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
DEBUG [668f04fb] /usr/languages/ruby/1.9.2/bin/ruby1.9.2 /home/lusineabelfort/www_rails/prof/shared/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
DEBUG [668f04fb] /usr/languages/ruby/1.9.2/bin/ruby1.9.2: symbol lookup error: /home/lusineabelfort/www_rails/prof/shared/bundle/ruby/1.9.1/gems/mysql2-0.3.16/lib/mysql2/mysql2.so: undefined symbol: rb_wait_for_single_fd
DEBUG [668f04fb] rake aborted!
DEBUG [668f04fb] Command failed with status (127): [/usr/languages/ruby/1.9.2/bin/ruby1.9.2 /h...]
DEBUG [668f04fb] /home/lusineabelfort/www_rails/prof/shared/bundle/ruby/1.9.1/gem
cap production deploy:setup_config
DEBUG [fbd98dc8] Running /usr/bin/env [ ! -d ~/.rbenv//versions/1.9.3-p484 ] on ssh.alwaysdata.com
DEBUG [fbd98dc8] Command: [ ! -d ~/.rbenv//versions/1.9.3-p484 ]
DEBUG [fbd98dc8] Finished in 1.727 seconds with exit status 1 (failed).
DEBUG [8a8a87e1] Running /usr/bin/env [ -f /etc/nginx/sites-enabled/default ] on ssh.alwaysdata.com
DEBUG [8a8a87e1] Command: [ -f /etc/nginx/sites-enabled/default ]
DEBUG [8a8a87e1] Finished in 1.247 seconds with exit status 1 (failed).
No default Nginx Virtualhost to remove
INFO [f687856e] Running /usr/bin/env mkdir -p /home/lusineabelfort/apps/prof_production/shared/config on ssh.alwaysdata.com
DEBUG [f687856e] Command: ( RBENV_ROOT=~/.rbenv/ RBENV_VERSION=1.9.3-p484 /usr/bin/env mkdir -p /home/lusineabelfort/apps/prof_production/shared/config )
-current_category = nil
[email protected] do |element|
-if element.category != current_category
%ul
%li=element.name
-current_category = element.category
def all_children(include_self=true)
ar = []
add_children ar, self, include_self
ar
end
def add_children(ar, g, save=true)
ar << g if save
g.children.each{ |c| c.add_children ar, c }
end
class User < ActiveRecord::Base
def self.all_foos(age=nil)
req = where(name: "foo")
req.where(age: age) if !age.nil?
end
end
# config/initializers/email_validation.rb
Rails.application.config.before_initialize do
email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
end
Started GET "/inscription" for 127.0.0.1 at 2013-07-23 12:02:04 +0200
Processing by UsersController#new as HTML
Rendered users/new.html.haml within layouts/application (6.6ms)
Completed 500 Internal Server Error in 8ms
def js_link_to(name=nil, html_options=nil, &block)
html_options ||= {}
html_options[:href] = "javascript:void(0)"
content_tag(:a, name, html_options, &block)
#link_to name, "javascript:void(0);", html_options
end
# Updating a Page creates a new Path, even if this isnt changed ... is it normal ?
# Page model
class Page < ActiveRecord::Base
attr_accessible :path, :path_attributes
has_one :path, :as => :pathable, :dependent => :destroy
accepts_nested_attributes_for :path