Rails Developers Meetup 2017ã§çºè¡¨ãããRailsâ¤ï¸SQLãã®ãµã³ãã«ã³ã¼ãã§ãã ã¹ã©ã¤ã ã¹ã©ã¤ãã¯ãã¡ãã«ããã¾ãããã®è¨äºã¨ãããã¦ã©ããã Railsâ¤ï¸SQL #railsdm // Speaker Deck 1. ã¡ãã£ã¨åã£ãæ¤ç´¢æ¡ä»¶ Formã¢ãã« target_none?ãxxx_selected?ã¯ç¬èªã®privateã¡ã½ããã§ãï¼ã³ã¼ãä¾ã¯çç¥ï¼ã class ProjectSearchForm include ActiveModel::Model attr_accessor :keyword, :project, :customer, :member def result scope = Project.all if keyword.present? conditions = [] if target_none? || project

{{#tags}}- {{label}}
{{/tags}}