Skip to content

Instantly share code, notes, and snippets.

View slawosz's full-sized avatar

Sławosz Sławiński slawosz

View GitHub Profile
merb : worker (port 4000) ~ Started request handling: Sat Dec 27 14:25:51 +0100 2008
merb : worker (port 4000) ~ Routed to: {"activation_code"=>"f0842d4b48e925d6ddba7314b0181a76758eff43", "action"=>"activate", "controller"=>"merb_auth_slice_activation/activations"}
merb : worker (port 4000) ~ Params: {"activation_code"=>"f0842d4b48e925d6ddba7314b0181a76758eff43", "action"=>"activate", "controller"=>"merb_auth_slice_activation/activations"}
~ SELECT "activated_at", "activation_code", "id", "login", "email", "admin", "created_at", "remember_me_token_expiration", "remember_me_token", "crypted_password", "salt" FROM "users" WHERE ("activation_code" = 'f0842d4b48e925d6ddba7314b0181a76758eff43') ORDER BY "id" LIMIT 1
~ SELECT "activated_at", "activation_code", "id", "login", "email", "admin", "created_at", "remember_me_token_expiration", "remember_me_token", "crypted_password", "salt" FROM "users" WHERE ("id" = 3) ORDER BY "id"
~ SELECT "id" FROM "users" WHERE ("login" = 'test2') ORDER BY "id" LIMIT 1
~ S
= select :article_id, :collection => @articles, :text_method => :title, :value_method => :id, :label => "Wybierz artykuł do pokazania w menu", :include_blank => "Wybierz artykuł", :selected => @menu_element.article.id.to_s
module GallerySlicePhotos
def self.included(base)
base.class_eval do
include GallerySlicePhotos::InstanceMethods
extend GallerySlicePhotos::DMClassMethods
end
end
module DMClassMethods
merb : worker (port 4005) ~ Started request handling: Tue Jan 13 13:47:15 +0100 2009
merb : worker (port 4005) ~ Params: {"format"=>nil, "action"=>"index", "controller"=>"file_manager_slice/admin/files"}
merb : worker (port 4005) ~ {:before_filters_time=>2.3e-05, :dispatch_time=>0.03159, :action_time=>0.030858, :after_filters_time=>2.8e-05}
merb : worker (port 4005) ~
merb : worker (port 4005) ~ Started request handling: Tue Jan 13 13:47:15 +0100 2009
merb : worker (port 4005) ~ Params: {"format"=>"json", "action"=>"index", "controller"=>"file_manager_slice/admin/files"}
merb : worker (port 4005) ~ wrong number of arguments (2 for 0) - (ArgumentError)
/usr/lib/ruby/gems/1.8/gems/json_pure-1.1.3/lib/json/pure/generator.rb:300:in `to_json'
/usr/lib/ruby/gems/1.8/gems/json_pure-1.1.3/lib/json/pure/generator.rb:300:in `json_transform'
public class Game {
Gameboard gameboard;
ComputerPlayer player2;
HumanPlayer player1;
ComputerPlayer player4;
HumanPlayer player3;
public Game(Gameboard gameboard,
HumanPlayer player1,
file 'Gemfile', <<-GEMS
source 'http://rubygems.org'
gem "bundler", "0.9.25"
gem 'rails', '3.0.0.beta3'
gem "compass"
gem "haml"
gem "bundler", ">=0.9.25"
gem "rails3-generators"
#This file is for drying end easy maintain template for creating rails application with devise, mongoid and #haml
#Gemfile
apply "http://gist.github.com/raw/406147/edge-template-Gemfile.rb"
# Bundle
run 'bundle install --relock'
# Initialize testing suite
run 'script/rails g rspec:install'
# Add a haml layout with google's jQuery
file "app/views/layouts/application.haml", <<-HAML
!!! 5
%html
%head
= csrf_meta_tag
= stylesheet_link_tag 'screen.css', :media => 'screen, projection'
= stylesheet_link_tag 'print.css', :media => 'print'
/[if lt IE 8]
= stylesheet_link_tag 'ie.css', :media => 'screen, projection'
#layout with very simple styling
file "app/views/layouts/application.haml", <<-HAML
!!! 5
%html
%head
%title
New Rails App!
= stylesheet_link_tag :all
= csrf_meta_tag
run "rails generate devise_install"