Comments (4)
Hello, I managed to reproduce it by doing so:
# helper
def foo(bar: 2)
# Do something useful
end
form do |f|
f.input :name, hint: foo(bar: 1)
...
end
Well, in our case we are using a helper to format a collection for a select, but it is all the same as long as the helper method takes a named parameter
from arbre.
I would expect our tests to fail now that we have added Ruby 3.0 CI builds (pending merge) but they aren't. I don't see warnings on earlier version builds either. We likely don't have test coverage for this case. Were you able to determine where that was occurring and if so could you share what that code looked like? Could give a hint on how to create a reproducible test case. Thanks.
from arbre.
This was fixed in #318 and part of the latest release. Thanks!
from arbre.
my server is flooded with that same warning . Is there any fix ?
I tried gaetanm 's suggestion to use
helpers.send(name, *args, **kwargs, &block) # with kwargs = {}
but it will crash and does not work .
from arbre.
Related Issues (20)
- Nested Form Fields Rendered Twice in 1.2.0 Release HOT 11
- Custom helper methods aren't rendered in 1.2.0
- Indent Perfomance HOT 3
- Support jetbrains plugin arbre
- Arbre::Element method_missing gives precedence to assigns instead of helpers
- Ruby 2.7 support HOT 3
- Time for a release? HOT 4
- Release for Ruby 2.7 deprecation warnings? HOT 1
- Template tag? HOT 1
- Support for custom elements with hyphenated tag names HOT 1
- Ruby 3 Bug image_pack_tag "wrong number of arguments (given 2, expected 1)" HOT 7
- Release a gem that supports Active Support/Rails 7 HOT 1
- hyphenated tag attributes are poorly supported, making stimulus integration painful HOT 5
- element method_missing method showing deprecation warnings HOT 3
- Test against Ruby 3.3
- Force encoding (Incompatible character encodings: UTF-8 and Windows-1251) HOT 2
- Document usage of .arb files HOT 2
- Spec Tests using to_be_success predicate are being deprecated HOT 1
- Typo in comment
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 arbre.