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
/Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/resolver.rb:280:in `resolve': Could not find gem 'bcrypt-ruby (>= 0, runtime)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/resolver.rb:160:in `start' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/resolver.rb:128:in `resolve' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/resolver.rb:127:in `catch' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/resolver.rb:127:in `resolve' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/definition.rb:151:in `resolve' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/definition.rb:90:in `specs' | |
from /Users/juliend2/.rvm/gems/ruby-1.8.7-p299@global/gems/bundler-1.0.10/lib/bundler/definition. |
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
<?php | |
$from_city = @$_GET['from_city'] or $from_city = ""; | |
$to_city = @$_GET['to_city'] or $to_city = ""; | |
$departure_date = @$_GET['departure_date'] or $departure_date = ""; | |
$return_date = @$_GET['return_date'] or $return_date = ""; | |
$date_format = @$_GET['date_format'] or $date_format = ""; | |
$adtQty = @$_GET['adtQty'] or $adtQty = ''; | |
header('location: http://www.klm.com/travel/ca_fr/apps/ebt/ebt_home.htm?c[0].os='.$from_city.'&c[0].ds='.$to_city.'&c[0].dd='.$departure_date.'&c[1].dd='.$return_date.'&c[1].format='.$date_format.'&flex=true&ebt-cabin-class=ECO&adtQty='.$adtQty.'&goToPage=&cffcc=ECONOMY'); |
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
require 'camping/session' | |
Camping.goes :APPNAME | |
module APPNAME | |
set :views, File.dirname(__FILE__) + '/views/' | |
include Camping::Session | |
end | |
module APPNAME::Models | |
class TABLENAME < Base;end |
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
require 'rubygems' | |
require 'bundler' | |
Bundler.require | |
require './src/APPNAME.rb' | |
# load the config files (this will be either ours locally or Heroku | |
dbconfig = YAML.load(File.read('config/database.yml')) | |
environment = ENV['DATABASE_URL'] ? 'production' :'development' |
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
macbook-pro-de-julien-desrosiers:mycarrierwave juliend2$ rake spec --trace | |
(in /Users/juliend2/Code/Ruby/mycarrierwave) | |
** Invoke spec (first_time) | |
** Execute spec | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c:2:23: error: FreeImage.h: No such file or directory | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c: In function ‘unload’: | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c:8: error: ‘FIBITMAP’ undeclared (first use in this function) | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c:8: error: (Each undeclared identifier is reported only once | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c:8: error: for each function it appears in.) | |
/Users/juliend2/.ruby_inline/Inline_ImageScience_cdab.c:8: error: ‘bitmap’ undeclared (first use in this function) |
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
macbook-pro-de-julien-desrosiers:rock juliend2$ make rescue | |
git pull | |
Already up-to-date. | |
rm -rf build/ | |
wget http://commondatastorage.googleapis.com/rock-linux/rock-bootstrap-only.tar.bz2 -O - | tar xjvmp | |
--2011-03-10 16:47:48-- http://commondatastorage.googleapis.com/rock-linux/rock-bootstrap-only.tar.bz2 | |
Resolving commondatastorage.googleapis.com... 209.85.225.132 | |
Connecting to commondatastorage.googleapis.com|209.85.225.132|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 46 [application/x-bz2] |
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
/* | |
* @example An iframe-based dialog with custom button handling logics. | |
*/ | |
( function() { | |
CKEDITOR.plugins.add( 'MediaEmbed', | |
{ | |
requires: [ 'iframedialog' ], | |
init: function( editor ) | |
{ | |
var me = this; |
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
-# new.haml: | |
- form_for @acclaim, '/admin/acclaims/new', :multipart=>true, :method=>'post' do |f| | |
= f.error_messages | |
= f.crud_fields | |
%p.buttons | |
= f.submit "Create",:class=>'wymupdate' | |
= link_to 'Back', '/admin/acclaims' | |
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 Padrino::Helpers::FormBuilder::JoiedminFormBuilder < Padrino::Helpers::FormBuilder::AbstractFormBuilder | |
# Here we have access to a number of useful variables | |
# | |
# ** template (use this to invoke any helpers)(ex. template.hidden_field_tag(...)) | |
# ** object (the record for this form) (ex. object.valid?) | |
# ** object_name (object's underscored type) (ex. object_name => 'admin_user') | |
# | |
# We also have access to self.field_types => [:text_field, :text_area, ...] | |
# In addition, we have access to all the existing field tag | |
# helpers (text_field, hidden_field, file_field, ...) |
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 Review < ActiveRecord::Base | |
# ... some other code here ... | |
def self.form_fields | |
[ | |
{:name=>:journalist_name,:type=>:text_field}, | |
{:name=>:publication,:type=>:text_field}, | |
{:name=>:city,:type=>:text_field}, | |
{:name=>:title_en,:type=>:text_field}, |