17 search resultsShowing 1~17 results

Stocked
huydx

@huydx

RailsのTransactionの使い方

なぜTransactionが必要なのか Transationの目的は、あるいコードブロックにあるSQL文の変更を、全部成功することを守るための存在である。Transactionにより、データの統...

482
399
Comment0
huydx

@huydx

Rubyの委譲標準ライブラリのまとめ

Rubyで委譲を実現するために、大きく二つなライブラリを使っています。 forwardable delegate この二つのライブラリはすごく便利ですが、どう使うかと、どの場面に使えばいいかをか...

43
41
Comment2
huydx

@huydx

ssh接続のまとめ

毎回忘れるので、まとめます client側 $ cd ~/.ssh $ ssh-keygen -f client_rsa -t rsa $ scp ~/.ssh/client_rsa.pub a...

17
18
Comment2
huydx

@huydx

rubyのinstance_of? と kind_of?

instance_of? は厳密でinstanceのクラスをチェック kind_of? はinstanceのクラスと親クラス両方チェック a = 1 a.instance_of? Numeric...

1
1
Comment0
huydx

@huydx

git stash使い方

gitで作業する途中で、branchをswitchしたいときは git stash save git checkout <other-branch> git checkout <...

0
0
Comment0
huydx

@huydx

oh-my-zshの言語問題

zshでoh-my-zshをインストールした後、言語情報(locale)が書き込まれて、空白になってしまい、US-ASCIIをデフォルトになる。そのため、UTFのドキュメントを活用する際にエラー...

2
1
Comment0
huydx

@huydx

url 正規表現 ruby

Rubyではurlの正規表現がURIモジュールに存在する url.rb URI.regexp.match(input).nil?

8
6
Comment0
huydx

@huydx

rubyの$LOADED_FEATURES

Kernel$$LOADED_FEATURES -> [String] Kernel.#require でロードされたファイル名を含む配列です。 Kernel.#require で同じファ...

0
1
Comment0

17 search resultsShowing 1~17 results

Qiita is a knowledge sharing service for engineers.

  1. You can follow users and tags
  2. You can stock useful information
  3. You can make edit suggestions for articles
Functions that can be used after logging in