This is a Ruby on Rails application that helps users with benefits applications. The application uses:
- Ruby on Rails 8
- PostgreSQL database
- Bootstrap 5.3 for UI styling
- Hotwire (Turbo and Stimulus) for frontend interactivity
- RSpec for testing
| require 'date' | |
| require 'benchmark' | |
| n = 1_000_000 | |
| start_date = Date.new(2012, 01, 01) | |
| end_date = Date.new(2012, 03, 01) | |
| act_date = Date.new(2012, 02, 01) | |
| Benchmark.bm(10) do |x| | |
| x.report('include?') do |
| # Place this file in the root of your project directory | |
| # eg. APPNAME=tito | |
| APPNAME= | |
| # eg. APP_SERVERS=(deploy@app1.tito.io deploy@app2.tito.io) | |
| APP_SERVERS=() | |
| # eg. CACHE_DIRS=(public/cache) | |
| CACHE_DIRS=() |
| #Add this new method | |
| #activeadmin-0.4.0\lib\active_admin\views\pages\show.rb | |
| #after def attributes_table | |
| def attributes_table_for_resource(specified_resource, *args, &block) | |
| panel(I18n.t('active_admin.details', :model => "#{specified_resource.class.name} #{specified_resource.id}")) do | |
| attributes_table_for specified_resource, *args, &block | |
| end | |
| end |