diff --git a/Gemfile b/Gemfile index 261dd39..d4f5083 100644 --- a/Gemfile +++ b/Gemfile @@ -24,6 +24,13 @@ gem 'bootsnap', '>= 1.4.4', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: %i[mri mingw x64_mingw] + gem 'rspec-rails', '~> 6.0.0', groups: %i[development test] + gem 'factory_bot_rails', '~> 6.0.0', + gem 'rubocop', '~> 1.48', require: false + gem 'rubocop-performance', '~> 1.16', require: false + gem 'rubocop-rails', '~> 2.18', require: false + gem 'rubocop-rake', '~> 0.6.0', require: false + gem 'rubocop-rspec', '~> 2.19', require: false end group :development do @@ -36,13 +43,3 @@ end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] - -gem 'rspec-rails', '~> 6.0.0', groups: %i[development test] - -gem 'factory_bot_rails', '~> 6.0.0', groups: %i[development test] - -gem 'rubocop', '~> 1.48', groups: %i[development test], require: false -gem 'rubocop-performance', '~> 1.16', groups: %i[development test], require: false -gem 'rubocop-rails', '~> 2.18', groups: %i[development test], require: false -gem 'rubocop-rake', '~> 0.6.0', groups: %i[development test], require: false -gem 'rubocop-rspec', '~> 2.19', groups: %i[development test], require: false diff --git a/app/javascript/packs/hello_react.jsx b/app/javascript/packs/hello_react.jsx deleted file mode 100644 index 772fc97..0000000 --- a/app/javascript/packs/hello_react.jsx +++ /dev/null @@ -1,26 +0,0 @@ -// Run this example by adding <%= javascript_pack_tag 'hello_react' %> to the head of your layout file, -// like app/views/layouts/application.html.erb. All it does is render
Coding challenge presented to candidates interviewing for a role at Haistack.AI.
- -#findyourneedle
- -Copyright 2023 Haistack.AI
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 5d75ef8..be209e4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,9 +8,11 @@ <%= stylesheet_pack_tag 'application', media: 'all' %> <%= javascript_pack_tag 'application' %> + <%= javascript_pack_tag 'react_app' %> + <%= yield %>