Edit your , by changing Hanami version:
gem 'hanami', '~> 0.8'
.Create a group
:development
inGemfile
and addgem 'shotgun'
Create a group
:development, :test
inGemfile
and addgem 'dotenv', '~> 2.0'
Edit
.hanamirc
by adding a new keyproject
. The value must be the snake_case name of the project. Eg.project=active_citizens
.Change params validation syntax. Learn more at .
Change params access syntax to symbols. Eg
params['book']
is no longer supported.The returning value of
params.errors
has changed: now it’s a Hash with key the attribute name and value an array of strings with error messages.[Optional] Edit logging settings in
apps/web/application.rb
.[Optional] Add
security.x_xss_protection '1; mode=block'
toapps/web/application.rb
.[Optional] Add
subresource_integrity :sha256
toassets
block inconfigure :production
toapps/web/application.rb
.[Optional] RSpec users can disable Rake 11 warnings by adding
config.warnings = false
to theRSpec.configure |config|
block in .
If you have any problem, don’t hesitate to look for help in .