Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
レールの宝石を使用して、その特定の月の(土曜日と日曜日を除く)渡して返すROR関数を書きたいですmonthtotal working daysbusiness_time
ROR
month
total working days
business_time
試してください(テストされていません):
first_day = Date.parse("September 30, 2012") last_day = Date.parse("November 1, 2012") first_day.business_days_until(last_day)