Ruby on Rails partials
See original GitHub issueIs your feature related to a specific framework or general for this extension
Ruby on Rails
Is your feature request related to a problem? Please describe.
When I paste translation in partial view called “_form.html.erb” like:
t('.some_key')
it creates a key like:
en:
posts:
_form:
some_key: 'some string'
Describe the solution you’d like
In Rails, it is not correct, because “_” prefix should not be present. Correct way:
en:
posts:
form:
some_key: 'some string'
It would be great, if I can set this behaviour by myself.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Layouts and Rendering in Rails - Ruby on Rails Guides
Partial templates - usually just called "partials" - are another device for breaking the rendering process into more manageable chunks. With a partial,...
Read more >Let's Use Rails Partials To Render Art from Magic: the Gathering!
Partial templates - usually just called "partials" - are another device for breaking the rendering process into more manageable chunks. With a ...
Read more >How to use Partials in Rails - GoRails
How to use Partials in Rails · Go to app > views. · Create a folder called shared. · Create a file to...
Read more >Performance Impact of Using Ruby on Rails View Partials
Ruby on Rails view partials can help keep your codebase DRY, but misusing them can have a significant performance impact.
Read more >An Intro to Partials and Helpers in Ruby on Rails
Partial templates help you package chunks of code for reuse in your views. Partials are a good fit for code you find yourself...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The build fails due to some typing error, working on it now
It works perfectly! Thank you so much!