Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin fails to find locale #2242

Open
renich opened this issue Jul 12, 2021 · 0 comments
Open

Admin fails to find locale #2242

renich opened this issue Jul 12, 2021 · 0 comments

Comments

@renich
Copy link

renich commented Jul 12, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant