Ruby on Railsを使った開発イメージをRuby on Railsを触ったことがないデベロッパー向けに発表しましたので、公開します。
*発表時より、Railsを使った実際の構成例を紹介するスライドを追加しています。
このイベントです。
https://general.connpass.com/event/63492/
Ruby on Railsを使った開発イメージをRuby on Railsを触ったことがないデベロッパー向けに発表しましたので、公開します。
*発表時より、Railsを使った実際の構成例を紹介するスライドを追加しています。
このイベントです。
https://general.connpass.com/event/63492/
The document discusses search forms for Rails applications. It introduces Ransack as a popular gem for building search forms but notes some cons like including hacks and difficulty maintaining. It then proposes a new gem called Pickel that the author is developing to replace Ransack. Pickel is designed to build search queries using ActiveRecord directly without hacks and allow searching on attributes and associations through a simple API. Various design approaches for Pickel are discussed, with the goal of tagging it at v1.0 once it is production-ready to replace Ransack.
自己修復的なインフラ -Self-Healing Infrastructure-sinsoku listy
?
This document summarizes a presentation about self-healing infrastructure. It discusses implementing identity and access management (IAM) in AWS, including using IAM to control access, managing access keys, and using IAM roles. It also covers using Terraform and AWS CodeBuild for infrastructure as code and continuous integration/delivery workflows.
This document summarizes an presentation about measuring CSS coverage in ES2015. It introduces Clairvoyance, a CSS coverage measurement tool, and how the author reworked it to use ES2015 features like Gulp, Babel, ESLint, and tools like remap-istanbul and Codecov to handle coverage mapping and reporting for ES2015 code. Key points covered include using Babel to transpile ES2015 code, configuring ESLint with Airbnb style rules, and using sourcemaps and coverage remapping to get accurate coverage metrics.
14. 雑な実装イメージA
class BusinessCardsController < ApplicationController
def index
respond_to do |format|
format.html { ... }
format.csv { ... } # こんなので実装できそう
end
end
end
14
17. 雑な実装イメージB
class CardExportingsController < ApplicationController
def index
@card_exports = current_user.card_exportings.all
end
def create
@card_export = CardExporting.new(card_exporting_params)
@card_export.user_id = current_user.id
if @card_export.save
# 非同期処理でcsvのダウンロード準備をする
CardExportingJob.perform_later(@card_export)
redirect_to card_exporting_path(@card_export)
else
render :new
end
end
end
17
18. 雑な非同期処理B
class CardExportingJob < ApplicationJob
def perform(card_export)
data = card_export.to_csv
client = Aws::S3::Client.new
status = client.upload(data) ? :success : :failed
card_export.update(status: status)
end
end
18