0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Rails】Simple Calendar gem を使ってカレンダー機能作成

Last updated at Posted at 2022-07-31

カレンダー機能を実装した時の忘却防止メモ

公式リファレンスを参考にgemを追加

Gem install

Gemfile.
gem "simple_calendar", "~> 2.0"

bundle installを実行

css 適応

app/assets/stylesheets/application.css
*= require simple_calendar

View表示

index.html.erb
<%= month_calendar  do |date| %>
  <%= date.day %>
<% end %>

スクリーンショット 2022-07-31 12.02.34.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?