Posts by PURGE

Phoenix select と radio_button

■ selectタグの場合 [ruby] <div class="form-group"> <%= label f, :gender, class:[…]

Phoenix date_select フォーマット

[ruby] <div class="form-group"> <%= label f, :birthday, class: "control-label" %&

Phoenix date_select 期間とデフォルト(本日日付)の設定方法

[ruby] <div class="form-group"> <%= label f, :birthday, class: "control-label" %&

Phoenix Framwork select tag

■member_controller.ex [ruby] def new(conn, _params) do changeset = Portal.change_member(%Member{}) teams[…]

PostgreSQL 基本的コマンド

■ postgres ユーザでログイン [bash] > psql -U postgres ユーザー postgres[…]

Elixir 演算子

基本的な演算子。 = は、パターンマッチ。 == は、弱い比較。 === == は、強い比較。 [erlang] iex(1)>[…]

brunchでJSXコンパイルエラー

Phoenixで、Reactを使用しようとしていて、BrunchでJSXのコンパイルエラーが発生。 [bash] error: Compiling of js/app.js failed. L29:12 Unexpect […]

nil の場合の値代入

Ecto でDBから値を返す時、nilの場合がある。 この場合に、nilをreplaceしたい場合がある。その記述方法 [ruby] result = %{total: nil} total =[…]

WindowsリモートデスクトップでCtrl+Alt+Delete

Windowsの場合:[Ctrl] + [Alt] + [Delete] Windowsリモートデスクトップの場合:[Ctrl] + [Alt] + [End]

Elixir モジュール組み立て方

[ruby] # Elixirモジュールの組み立て方 defmodule Return do # 外部I/F定義 def return(list)[…]

1 8 9 10 11 12 63