めぐさん (@megusan1108) 's Twitter Profile
めぐさん

@megusan1108

ID: 1172148601956388864

calendar_today12-09-2019 14:03:10

24 Tweet

28 Followers

112 Following

めぐさん (@megusan1108) 's Twitter Profile Photo

アナログ人間ですが、人に勧められてVRを初めて体験しました。ヘッドマウントディスプレイとガンコントローラーというのを装着して遊ぶ、Tower Tagというシューティングゲームです。 tower-tag.net/jp/ 戦っている最中の近未来的な景色も素晴らしく、あまりにも楽しすぎました #勉強しないと

めぐさん (@megusan1108) 's Twitter Profile Photo

headタグ内に <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> で、 とりあえず縮小しないスマホ対応ができる。 #viewportの設定

めぐさん (@megusan1108) 's Twitter Profile Photo

この記事、きちんと情報を整理して、立場を(できるだけ)明確にして論じていて、ちゃんとしてる。 「自殺が正しいかどうかでなく、何故そうなったのか」 こんな当たり前で最低限のことすら出来ない人が多い世の中だから😭😭😭 #自殺配信 various-events.com/2020/02/18/min…

めぐさん (@megusan1108) 's Twitter Profile Photo

Bundler is the default gem dependency manager for Ruby projects. Bundler is the way to manage your gems. If your Ruby application won't start because of a missing gem, then you must install it locally using Bundler.

めぐさん (@megusan1108) 's Twitter Profile Photo

C: This operation would create a brand new entity. R: This operation would read something from the DB but would not make any permanent changes to the DB. U: This operation would change values of an already existing entity. D: This operation would delete an entity from the DB.

めぐさん (@megusan1108) 's Twitter Profile Photo

The Rails router recognizes URLs and dispatches them to a controller's action, (or to a *Rack application). It can also generate paths and URLs, avoiding the need to hardcode strings in your views. *Rack provides a minimal interface between webservers that support Ruby and Rails.

めぐさん (@megusan1108) 's Twitter Profile Photo

Rails controllers are basically files where actions (methods) are kept. Each time you access a Rails app, you're sending a request to the system. Your code can use the passed data through them to perform some sort of action (hence the name).

めぐさん (@megusan1108) 's Twitter Profile Photo

In general, git reset's function is to take the current branch and reset it to point somewhere else, and possibly bring the index and work tree along.

めぐさん (@megusan1108) 's Twitter Profile Photo

navbar-brand class is applied to typical branding logo you see in the top navigation bar. It may just contain a typical image logo or text.

navbar-brand class is applied to typical branding logo you see in the top navigation bar. It may just contain a typical image logo or text.
めぐさん (@megusan1108) 's Twitter Profile Photo

A lightbox is a type of popup used to emphasize a piece of content including coupons, new products, and important announcements. It is superior to normal popups in that the user can click anywhere outside of the popup to close it. This leads to less user frustration.

めぐさん (@megusan1108) 's Twitter Profile Photo

Userモデルのemailバリデーション、 before_save { self.email.downcase! } って、なんだか呪文みたいじゃないですか? 混乱してくると、リズムで覚えます。

Userモデルのemailバリデーション、
before_save { self.email.downcase! }
って、なんだか呪文みたいじゃないですか?

混乱してくると、リズムで覚えます。
めぐさん (@megusan1108) 's Twitter Profile Photo

On your <ul> or <ol>, add the .list-unstyled to remove any browser default list styles, and then apply .media to your <li>s. As always, use spacing utilities wherever needed to fine tune. #Bootstrap #medialist

On your &lt;ul&gt; or &lt;ol&gt;, add the .list-unstyled to remove any browser default list styles, and then apply .media to your &lt;li&gt;s. As always, use spacing utilities wherever needed to fine tune.
#Bootstrap #medialist
めぐさん (@megusan1108) 's Twitter Profile Photo

@￰current_user ||= User.find_by(id: session[:user_id]) @￰current_userが存在していたらそれを使う。 が、もしなかったらUserモデルがfind_byメソッドを使ってDBへお問い合わせ。idの値がsessionのuser_idと一致しているレコードを取り出し、@￰current_userとして入れる。 #sessions_helper

めぐさん (@megusan1108) 's Twitter Profile Photo

!!current_user <ログインしている> current_user → true !current_user → false !!current_user → true🆗 <ログインしていない> current_user → nil !current_user → true !!current_user → false❌

めぐさん (@megusan1108) 's Twitter Profile Photo

Current_page is a method of the UrlHelper module, and it checks current page path. Methods in Rails’ inbuilt helper modules are available only in views, not in models or controllers. You can also access the current page’s URL via current_page.url.

Current_page is a method of the UrlHelper module, and it checks current page path. Methods in Rails’ inbuilt helper modules are available only in views, not in models or controllers. You can also access the current page’s URL via current_page.url.