Comments (2)
Same problem, it seems be a major bug.
from arbre.
This is not a bug, it's a feature. It was designed that way :)
I understand that it's different than how Rails typically handles instance variables, but in the context of Arbre it''s scary to inject instance variables into objects. I don't feel good about clobbering instance variables across all the objects in the DOM tree, so I've made them methods instead.
There are two ways to access them:
- As a method. So
@user.name
becomesuser.name
- From the assigns hash:
assigns[:user].name
The assigns hash holds reference to all the assignments that were passed to the view from the controller.
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
- Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call HOT 4
- 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
- Use streaming responses
- 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.