Comments (2)
@andyduong1920 do you have more information about this case? What was the problem? In which situation was the local not assigned properly? (maybe in an Engine controller that did not inherit from the main ::ApplicationController
? 🤔 )
My case is that around_action
is resetting the locale to the default value after the action, and this is bad with Devise flash messages when login fails: because devise redirects to the login
page, and sets the flash message
after the action is completed, so the locale value used will be the default one, not the current one =/
Thanks for your lights! 🙌
from rails-templates.
That is the case @malparty we set the locale on before_action, but the flash message didn't get localized.
from rails-templates.
Related Issues (20)
- Revise the Flow for Asking Options to Generate the Project
- Fix: Deprecation of the script to install NodeJS & Yarn from nodesource HOT 1
- Fix: Duplicated `Dockerfile` and `.dockerignore` when generating the project with Rails 7.1 HOT 2
- Add the Rubocop cop to enforce YARD documentation for public methods
- Add a Bootstrap layout to the CRUD add-on
- Fix: Postcss not compatible with Node 16
- [CRUD] Add SCSS styling to the layout
- [CRUD] Add the index view templates to the generator
- [CRUD] Add the form view templates to the generator
- Create (or use) a Rubocop for the inverse keyword needed in the associations HOT 2
- Create a Rubocop cop for ordering instructions in class (e.g. Models)
- Compare Sidekiq and GoodJob and define if we should change the standard HOT 2
- Fix: The `./rubocop` folder is not copied to the generated project HOT 2
- Compare Pundit and Action Policy and define if we should change the standard
- Add Devise-Hotwire configuration when both Hotwire and Devise are selected
- Update Dockerfile to use multi-stages to reduce build time and image size
- [Remove Node.js] Use dart-sass for SCSS HOT 1
- [Remove Node.js] Setup JS dependencies using CDN and import maps
- [Remove Node.js] Configure code lint without Node.js (ESLint and Stylelint)
- [Remove Node.js] Configure autoprefixer without Node or check for any alternative.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-templates.