Do you want to request a feature or report a bug?
bug
What is the current behavior?
When you generate a brand new padrino app and, then, generate an admin section, it seems the admin section fails to find the locale.
To reproduce:
# variables
project=test
# create a sample app
padrino g project -d sequel -a sqlite -s jquery -e slim "${project}"
cd "${project}"
# enable thin
sed -ri "s@^# gem 'thin'@gem 'thin'@" Gemfile
# bundler
bundle config set --local path 'vendor/bundle'
bundle install
bundle binstubs --all
# install bootstrap
bundle exec padrino g plugin bootstrap
# generate Admin section
bundle exec padrino g admin
bundle install
padrino rake db:migrate
padrino rake db:seed
# run padrino
padrino start
# open admin
firefox http://127.0.0.1:3000/admin/
What is the expected behavior?
The admin page should show up and ask you for your credentials.
Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?
[renich@introdesk padrino]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 34 (Thirty Four)
Release: 34
Codename: ThirtyFour
[renich@introdesk padrino]$ padrino -v
Padrino v. 0.15.1
[renich@introdesk padrino]$ ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
[renich@introdesk padrino]$ uname -a
Linux introdesk.g02.org 5.12.14-300.fc34.x86_64 #1 SMP Wed Jun 30 18:30:21 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When you generate a brand new padrino app and, then, generate an admin section, it seems the admin section fails to find the locale.
To reproduce:
What is the expected behavior?
The admin page should show up and ask you for your credentials.
Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?