Erector should not turn helpers which return into helpers which emit · Issue #43 · erector/erector · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used with rails, erector currently wraps helper methods so that methods which return HTML, like link_to, will emit output instead.
This is not what rails developers expect, but it also creates problems which do not have easy solutions.
For example, consider the following HAML code to output some tabs with a vertical bar between the tabs.
This generates something like "File | Edit | Admin" (with the exact menu items depending on the parameters).
Translating to Erector looks like this:
and the result is something like "FileEditAdmin |" because link_to emits rather than returning.
The rails helper to_sentence also suffers from this problems.
With the enclosed patch, the above erector code works.
The text was updated successfully, but these errors were encountered: