This file contains 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
equire File.join(File.dirname(__FILE__), 'boot') | |
RAILS_GEM_VERSION = '2.3.9' unless defined? RAILS_GEM_VERSION | |
Rails::Initializer.run do |config| | |
config.time_zone = 'UTC' | |
config.gem 'declarative_authorization', :source => 'http://gemcutter.org' | |
config.gem 'searchlogic' |
This file contains 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
- @employees.each do |employee| | |
%span{:style=>"float:left;margin-right:20px;"}= image_tag employee.image | |
%div{:style=>"float:left;margin-top:30px;"} | |
= employee.name | |
, | |
= employee.title | |
%br/ | |
%br/ | |
= mail_to employee.email |
This file contains 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 DatatablesRails | |
class Structify | |
attr_accessor :struct | |
def initialize(data) | |
@struct = {} | |
@struct = data.collect{|d| d.attributes } | |
end | |
def formatter(&block) | |
#block.call(@struct) |
This file contains 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
#!/bin/bash | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
This file contains 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
1: 日 | |
2: 一 | |
3: 国 | |
4: 会 | |
5: 人 | |
6: 年 | |
7: 大 | |
8: 十 | |
9: 二 | |
10: 本 |