question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ruby on Rails partials

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
antfucommented, May 28, 2020

The build fails due to some typing error, working on it now

0reactions
richardrailscommented, May 28, 2020

It works perfectly! Thank you so much!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found