Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Delete vestigial MailingListForm; use button_to for subscribe/unsubscribe

クローズ 初心者向け
#2,948 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rails, ruby
領域
web-dev

調査の方向性

まず app/views/subscriptions/index.html.haml と app/form_models/mailing_list_form.rb を読み、その後 spec/features にある subscriptions ページのカバレッジを確認してください。ビューを変更する前に、既存の Create および Destroy ルートと MailingListsController のアクションを確認してください。両方のボタンが同じように動作し、unsubscribe が引き続き DELETE を使用し、フォームモデルが削除され、関連する feature specs がパスすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue tech debt

Problem

app/form_models/mailing_list_form.rb is a one-line ActiveModel::Model class (attr_accessor :name) that exists only as an anchor object for two simple_form_for wrappers in app/views/subscriptions/index.html.haml. Those "forms" are just subscribe/unsubscribe buttons — no fields are rendered, and MailingListsController ignores all params (its create/destroy read nothing). TermsAndConditionsForm stays — it has a real acceptance validation and .valid? gate.

Proposed change

  • Replace both simple_form_for @mailing_list, ... wrappers with button_to (native Rails: handles POST/method: :delete, CSRF, and accepts the same class: 'btn btn-success btn-lg mb-0').
  • Delete app/form_models/mailing_list_form.rb.
  • No controller or route changes.

Acceptance

  • Subscribe/unsubscribe buttons on the subscriptions page behave identically (including method: :delete for unsubscribe).
  • MailingListForm no longer exists.
  • spec/features covering the subscriptions page pass.
主要言語
Ruby
スター
104
フォーク
205
平均マージ
1日 2時間
マージ済み PR(30日)
81

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codebar/planner のほかの issue

codebar/planner の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。