This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sass::SyntaxError in Main/cockpit#index | |
Showing /Users/edison/Sites/beta.foco/app/views/layouts/application.html.haml where line #8 raised: | |
Invalid CSS after "...: alpha(opacity": expected comma, was ":0);" | |
Extracted source (around line #8): | |
5: %meta{'http-equiv' => 'Content-language', 'content' => I18n.locale} | |
6: %meta{'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edison$ rails s | |
/Users/edison/.rvm/gems/ruby-1.8.7-p334/gems/pjax-rails-0.1.1/lib/pjax-rails.rb:1:in `require': /Users/edison/.rvm/gems/ruby-1.8.7-p334/gems/pjax-rails-0.1.1/lib/pjax.rb:5: syntax error, unexpected '>' (SyntaxError) | |
layout ->(c) { pjax_request? ? false : 'application' } | |
^ | |
/Users/edison/.rvm/gems/ruby-1.8.7-p334/gems/pjax-rails-0.1.1/lib/pjax.rb:5: syntax error, unexpected '{', expecting kEND | |
layout ->(c) { pjax_request? ? false : 'application' } | |
^ | |
/Users/edison/.rvm/gems/ruby-1.8.7-p334/gems/pjax-rails-0.1.1/lib/pjax.rb:5: syntax error, unexpected '}', expecting kEND | |
/Users/edison/.rvm/gems/ruby-1.8.7-p334/gems/pjax-rails-0.1.1/lib/pjax.rb:10: odd number list for Hash | |
new_url = url_for(url ? url : { action: action }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Pjax | |
extend ActiveSupport::Concern | |
included do | |
layout lambda {|c| c.pjax_request? ? false : 'application' } | |
end | |
private | |
def redirect_pjax_to(action, url = nil) | |
new_url = url_for(url ? url : { :action => action }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edison$ rails s | |
=> Booting WEBrick | |
=> Rails 3.1.0.beta1 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2011-05-19 22:07:41] INFO WEBrick 1.3.1 | |
[2011-05-19 22:07:41] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0] | |
[2011-05-19 22:07:41] INFO WEBrick::HTTPServer#start: pid=4975 port=3000 | |
Error during failsafe response: "\xC3" from ASCII-8BIT to UTF-8 | |
/Users/edison/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.1.0.beta1/lib/active_support/buffered_logger.rb:104:in `write' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edison$ rails s | |
=> Booting Mongrel | |
=> Rails 3.1.0.rc1 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Exiting | |
/Users/edison/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.1.1/lib/haml/template/patch.rb:16:in `alias_method': undefined method `delegate_template_exists?' for class `ActionView::Base' (NameError) | |
from /Users/edison/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.1.1/lib/haml/template/patch.rb:16:in `<class:Base>' | |
from /Users/edison/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.1.1/lib/haml/template/patch.rb:12:in `<module:ActionView>' | |
from /Users/edison/.rvm/gems/ruby-1.9.2-p180/gems/haml-3.1.1/lib/haml/template/patch.rb:11:in `<top (required)>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RIKUTATAMO, KIRIN KA TOKITOZUSKA. | |
# KI MIKATO CHISHIKATOARITAKACHIKU KATOFUCHIRIKITOJI FUMODO MEIKATOCHI. | |
# KADOCHIRIMOSHI: KUTEKIARIMOTO RINKAMIRIKATEMO. | |
class Tokitozuska | |
@@mirikashiari = { | |
"a" => "ka", | |
"b" => "zu", | |
"c" => "mi", | |
"d" => "te", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FileResource < ActiveRecord::Base | |
has_attached_file :attachment, | |
:storage => :s3, | |
:bucket => ENV['S3_BUCKET'], | |
:s3_credentials => { :access_key_id => ENV['S3_KEY'], | |
:secret_access_key => ENV['S3_SECRET'] }, | |
:path => 'files/:id/:filename', | |
:url => '/files/:id/:filename' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/will_paginate.rb | |
module WillPaginate | |
module ActionView | |
def will_paginate(collection = nil, options = {}) | |
options[:renderer] ||= BootstrapLinkRenderer | |
super.try :html_safe | |
end | |
class BootstrapLinkRenderer < LinkRenderer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// server | |
var net = require("net") | |
, server | |
; | |
server = net.createServer(function(socket){ | |
// socket.end("bye\n"); | |
socket.on("connect", function(){ | |
console.log("conectou\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# env.rb | |
Capybara.register_driver :selenium do |app| | |
Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
end | |
Download chromedriver from http://code.google.com/p/selenium/downloads/list | |
mv chromedriver to /usr/local/bin so it's in your path. |
OlderNewer