Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Job Tracker is a simple, powerful, and user-friendly web application designed to
- Point of Contact (P.o.C.)
- Email
- Website
- Status (No response, Interviewing, Job offer, Hired, Not hired)
- Location (Hybrid, Remote, In office)
- **Dynamic Filtering**: Quickly find specific applications using search and filter options.
- **Real-time Updates**: Leveraging Hotwire for seamless, dynamic content updates without full page reloads.
- **Responsive Design**: Fully functional on both desktop and mobile devices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<th class="px-5 py-3 w-48">
P.o.C.
</th>
<th class="px-5 py-3 w-96">
<th class="px-5 py-3 w-48">
Email
</th>
<th class="px-5 py-3">
Expand Down
43 changes: 23 additions & 20 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
require "faker"
# Commenting out the code below to prevent accidental seeding of the database and to avoid destroying existing data.
# To seed the database, uncomment the code below and run `rails db:seed` in the terminal.

JobApplication.destroy_all
20.times do
method_of_contact = %w[email internet_job_application recruiter].sample
email_address = (method_of_contact == "email") ? Faker::Internet.email : nil
website_link = (method_of_contact == "internet_job_application") ? "https://example.com/" : nil
# require "faker"

JobApplication.create!(
date_applied: Faker::Date.backward(days: 30),
company_name: Faker::Company.name,
method_of_contact: method_of_contact,
email_address: email_address,
point_of_contact: Faker::Name.name,
position_type: %w[full_time part_time internship].sample,
position_title: Faker::Job.title,
website_link: website_link,
claimed_for_unemployment: [true, false].sample,
status: %w[interviewing no_response not_hired job_offer].sample,
location: %w[remote in_office hybrid].sample
)
end
# JobApplication.destroy_all
# 20.times do
# method_of_contact = %w[email internet_job_application recruiter].sample
# email_address = (method_of_contact == "email") ? Faker::Internet.email : nil
# website_link = (method_of_contact == "internet_job_application") ? "https://example.com/" : nil

# JobApplication.create!(
# date_applied: Faker::Date.backward(days: 30),
# company_name: Faker::Company.name,
# method_of_contact: method_of_contact,
# email_address: email_address,
# point_of_contact: Faker::Name.name,
# position_type: %w[full_time part_time internship].sample,
# position_title: Faker::Job.title,
# website_link: website_link,
# claimed_for_unemployment: [true, false].sample,
# status: %w[interviewing no_response not_hired job_offer].sample,
# location: %w[remote in_office hybrid].sample
# )
# end