Add favorite/unfavorite button
Showing
| ... | @@ -24,6 +24,7 @@ gem "jbuilder", "~> 2.7" | ... | @@ -24,6 +24,7 @@ gem "jbuilder", "~> 2.7" |
| # Use Active Storage variant | # Use Active Storage variant | ||
| # gem "image_processing", "~> 1.2" | # gem "image_processing", "~> 1.2" | ||
| gem "jquery-rails", "4.3.1" | |||
| # Reduces boot times through caching; required in config/boot.rb | # Reduces boot times through caching; required in config/boot.rb | ||
| gem "bootsnap", ">= 1.4.2", require: false | gem "bootsnap", ">= 1.4.2", require: false | ||
| ... | ... |
app/controllers/favorites_controller.rb
0 → 100644
app/views/favorites/_favorite.html.erb
0 → 100644
app/views/favorites/_favorite_form.html.erb
0 → 100644
app/views/favorites/_favorite_job.html.erb
0 → 100644
app/views/favorites/_unfavorite_job.html.erb
0 → 100644
app/views/favorites/create.js.erb
0 → 100644
app/views/favorites/destroy.js.erb
0 → 100644
app/views/favorites/index.html.erb
0 → 100644
| ... | @@ -6,6 +6,7 @@ | ... | @@ -6,6 +6,7 @@ |
| "@rails/activestorage": "^6.0.0", | "@rails/activestorage": "^6.0.0", | ||
| "@rails/ujs": "^6.0.0", | "@rails/ujs": "^6.0.0", | ||
| "@rails/webpacker": "^4.2.0", | "@rails/webpacker": "^4.2.0", | ||
| "jquery": "^3.4.1", | |||
| "turbolinks": "^5.2.0" | "turbolinks": "^5.2.0" | ||
| }, | }, | ||
| "version": "0.1.0", | "version": "0.1.0", | ||
| ... | ... |
Please
register
or
sign in
to comment