james-em

Results 9 issues of james-em

Hi, When building forms, doing this ``` = f.input :role, collection: MyModel.translated_roles ``` Method MyModel.translated_roles will return something like ``` [["Administrateur", "admin", "admin"], ["Utilisateur", "user", "user"], ["Master", "master", "master"]] ```...

Hi, Sorry in advance if it was already asked. I was wondering if there was a way to prevent this behavior: ``` en: admin_mailer: profile_approve_email: email: > Hi a new...

### Steps to reproduce **Models:** ``` class User < ApplicationRecord has_many :project_users, dependent: :destroy, inverse_of: :user has_many :projects, through: :project_users validates :name, presence: true end class Project < ApplicationRecord has_many...

activerecord

**Simple explanation of the bug** ``` MyModelBase.all.decorate => Could not infer a decorator for MyModelBase. (Draper::UninferrableDecoratorError) MyModelBase.all.first.decorate => #

### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe No ### Describe...

### Bug description We have multiple routes that target the same controller and actions, but the controller filter results based on the "scope" parameter in the routes. Let me try...

bug

### Steps to reproduce 1. Run a Rails application with ActionCable 2. Use anything such as Javascript to connect to the channel 3. Rails console will log in loop: `[#]...

Code pen demonstrating the bug is fixed: https://codepen.io/James-St-Pierre/pen/ZEZZqew Closes https://github.com/stimulus-components/stimulus-sortable/issues/16 (Lots of good information here) https://github.com/stimulus-components/stimulus-sortable/issues/8 https://github.com/stimulus-components/stimulus-components/issues/60 **Explanation:** When you have a draggable list that have children with draggable list,...