ワンクリックで
forms
Build Rails forms with Tailwind CSS, Turbo integration, and strong params validation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Build Rails forms with Tailwind CSS, Turbo integration, and strong params validation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create and manage Solid Queue background jobs with perform_now vs perform_later patterns
Perform deep critical analysis of changes with focus on performance vs sustainability trade-offs
Add controllers and routes following project patterns for organizer namespaces, strong params, and Turbo
Write database migrations for PostgreSQL with PostGIS, UUID primary keys, enums, and counter caches
Create and modify Rails models following project conventions for STI, enums, validations, counter caches, and scopes
Create service objects in app/services/ using module namespaces for encapsulation
| name | forms |
| description | Build Rails forms with Tailwind CSS, Turbo integration, and strong params validation |
| license | MIT |
params.expect<%= form_with model: [:organizer, @resource], class: "space-y-4" do |f| %>
<% if @resource.errors.any? %>
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded">
<ul>
<% @resource.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div>
<%= f.label :name, class: "block text-sm font-medium text-gray-700" %>
<%= f.text_field :name, class: "mt-1 block w-full rounded-md border-gray-300 shadow-sm" %>
</div>
<div>
<%= f.submit "Save", class: "bg-blue-700 text-white px-4 py-2 rounded-lg hover:bg-blue-800" %>
</div>
<% end %>
params.expect(model: [:field1, :field2])params.expect(tournament: %i[name state start_time end_time])@resource.attributes = params → fails validationrender :edit, status: :unprocessable_entityf.text_field :namef.text_area :descriptionf.datetime_field :start_timef.select :state, options_for_select(...)f.check_box :accepted_termsf.file_field :cover (for ActiveStorage)f.hidden_field :fieldform_with with data: { turbo_frame: "frame_id" }data: { "turbo-method": :delete }<turbo-frame id="modal"> with target: "_top"f.check_box :accepted_terms + validation in modelf.file_field :cover + has_one_attached :covermerge(event_organizer: current_organizer) in controllerapp/views/registrations/new.html.erb — User registration formapp/views/passwords/new.html.erb — Password reset formapp/controllers/organizer/tournaments_controller.rb — Strong params with params.expect