This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
#!/bin/bash | |
# TODO: http://wiki.debian.org/LSBInitScripts | |
DESC="Selenium server" | |
RUN_AS=root | |
JAVA_BIN=/usr/bin/java | |
SELENIUM_DIR=/etc/selenium | |
PID_FILE="$SELENIUM_DIR/selenium.pid" |
rails console --sandbox -- --noreadline |
"------------------------------------ | |
" neosnippet | |
"------------------------------------ | |
" neosnippet "{{{ | |
" snippetを保存するディレクトリを設定してください | |
" example | |
" let s:default_snippet = neobundle#get_neobundle_dir() . '/neosnippet/autoload/neosnippet/snippets' " 本体に入っているsnippet | |
" let s:my_snippet = '~/snippet' " 自分のsnippet | |
" let g:neosnippet#snippets_directory = s:my_snippet |
"------------------------------------ | |
" vim-rails | |
"------------------------------------ | |
""{{{ | |
"有効化 | |
let g:rails_default_file='config/database.yml' | |
let g:rails_level = 4 | |
let g:rails_mappings=1 | |
let g:rails_modelines=0 | |
" let g:rails_some_option = 1 |
"------------------------------------ | |
" Unite-rails.vim | |
"------------------------------------ | |
"{{{ | |
function! UniteRailsSetting() | |
nnoremap <buffer><C-H><C-H><C-H> :<C-U>Unite rails/view<CR> | |
nnoremap <buffer><C-H><C-H> :<C-U>Unite rails/model<CR> | |
nnoremap <buffer><C-H> :<C-U>Unite rails/controller<CR> | |
nnoremap <buffer><C-H>c :<C-U>Unite rails/config<CR> |
#SOURCE https://gist.github.com/orzccc/3104030 | |
ja: | |
devise: | |
confirmations: | |
confirmed: 'アカウントを登録しました。' | |
# confirmed: 'Your account was successfully confirmed. You are now signed in.' | |
send_instructions: '登録方法を数分以内にメールでご連絡します。' | |
# send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' | |
send_paranoid_instructions: 'もしあなたのEメールアドレスが見つかった場合、本人確認についてのメールが数分以内に送られます。' |
# encoding: utf-8 | |
module TelSplitter | |
MAP = { | |
# 市外局番 , 市内局番の桁数のマップ | |
# http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html のデータを利用 | |
# 固定電話以外の桁数は適当です... | |
'050' => 4, # IP電話 | |
'070' => 4, # 携帯電話/PHS | |
'080' => 4, # 携帯電話 |