Skip to content

Commit 02456f2

Browse files
committed
update readme, fix th width, comment out seeds
1 parent f980556 commit 02456f2

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Job Tracker is a simple, powerful, and user-friendly web application designed to
3434
- Point of Contact (P.o.C.)
3535
- Email
3636
- Website
37+
- Status (No response, Interviewing, Job offer, Hired, Not hired)
38+
- Location (Hybrid, Remote, In office)
3739
- **Dynamic Filtering**: Quickly find specific applications using search and filter options.
3840
- **Real-time Updates**: Leveraging Hotwire for seamless, dynamic content updates without full page reloads.
3941
- **Responsive Design**: Fully functional on both desktop and mobile devices.

app/views/job_applications/_job_applications_table.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<th class="px-5 py-3 w-48">
2323
P.o.C.
2424
</th>
25-
<th class="px-5 py-3 w-96">
25+
<th class="px-5 py-3 w-48">
2626
Email
2727
</th>
2828
<th class="px-5 py-3">

db/seeds.rb

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
require "faker"
1+
# Commenting out the code below to prevent accidental seeding of the database and to avoid destroying existing data.
2+
# To seed the database, uncomment the code below and run `rails db:seed` in the terminal.
23

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

9-
JobApplication.create!(
10-
date_applied: Faker::Date.backward(days: 30),
11-
company_name: Faker::Company.name,
12-
method_of_contact: method_of_contact,
13-
email_address: email_address,
14-
point_of_contact: Faker::Name.name,
15-
position_type: %w[full_time part_time internship].sample,
16-
position_title: Faker::Job.title,
17-
website_link: website_link,
18-
claimed_for_unemployment: [true, false].sample,
19-
status: %w[interviewing no_response not_hired job_offer].sample,
20-
location: %w[remote in_office hybrid].sample
21-
)
22-
end
6+
# JobApplication.destroy_all
7+
# 20.times do
8+
# method_of_contact = %w[email internet_job_application recruiter].sample
9+
# email_address = (method_of_contact == "email") ? Faker::Internet.email : nil
10+
# website_link = (method_of_contact == "internet_job_application") ? "https://example.com/" : nil
11+
12+
# JobApplication.create!(
13+
# date_applied: Faker::Date.backward(days: 30),
14+
# company_name: Faker::Company.name,
15+
# method_of_contact: method_of_contact,
16+
# email_address: email_address,
17+
# point_of_contact: Faker::Name.name,
18+
# position_type: %w[full_time part_time internship].sample,
19+
# position_title: Faker::Job.title,
20+
# website_link: website_link,
21+
# claimed_for_unemployment: [true, false].sample,
22+
# status: %w[interviewing no_response not_hired job_offer].sample,
23+
# location: %w[remote in_office hybrid].sample
24+
# )
25+
# end

0 commit comments

Comments
 (0)