$ be bin/rails db
=# ALTER TABLE users ALTER COLUMN kana TYPE varchar COLLATE "ja_JP.utf8";
> 特定のカラムにだけ付与
=# \d staffs
> 付与したことを確認
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
def reverse_number(num) | |
(Math.log10(num) + 1).floor.times.map{ |digit| (num/10**digit)%10 }.inject{ |sum, n| sum*10 + n } | |
end | |
reverse_number 987654321 | |
# => 123456789 |
display: none
で非表示にしてあるものはcapybaraのfind対象なのか??
という疑問があるわけです。
ここは公式みてみますか。
Module: Capybara::Node::Finders
visible (Boolean) — Only find elements that are visible on the page. Setting this to false finds invisible andvisible elements.
TideSDK | Create multi-platform desktop apps with HTML5, CSS3 and JavaScript
- デスクトップアプリを作るためのツールキット
- クロスプラットフォーム(Win, Mac, Linux)
[https://github.com/aziz/knockdown]
- _の強調表示させたくない(変数名とかの見栄えが悪い)
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
[core] | |
quotepath = false | |
excludesfile = ~/.gitignore |
NewerOlder