11 search resultsShowing 1~11 results

Stocked
nyohon22

@nyohon22

商品出品ページ

商品出品ページの配送のセレクトボックスを実装した際の自分用の忘備録。 1 最初から表示されている3つのセレクトボックス内の値はモデルにenumを書く(string型になっていてはいけない?確認す...

7
10
Comment0
nyohon22

@nyohon22

配列

自分用忘備録 def new @category_parent_array = ["---"] Category.where(ancestry: nil).each do |parent| @c...

0
0
Comment0
nyohon22

@nyohon22

DBのデータをVIEWに表示

自分用。 まずはデータをallで取り出し。 def index @products = Product.all end VIEWの記述。 全体の箱で繰り返し処理をeachで行い。 必要箇所で、表...

0
0
Comment0
nyohon22

@nyohon22

validation 正規表現

自分用メモ。 ヘルパーまとめ。 <参考>https://qiita.com/shunhikita/items/772b81a1cc066e67930e 正規表現 記法 <参考&...

0
0
Comment0
nyohon22

@nyohon22

CSS の配置

自分用の備忘録。 真ん中にしたいのになかなかできない 1つずつ載せる。 Hamlは共通 .payment-information .payment-information__form %span...

0
1
Comment0
nyohon22

@nyohon22

haml 画像挿入

自分用。 %span.image = image_tag src="/assets/visa.svg", size: "49x20" = image_tag src="/assets/maste...

6
5
Comment0

11 search resultsShowing 1~11 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