-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML code on help section #211
Comments
At this point this is not possible. Maybe you should call a helper method for this logic. |
Do you have some recommendations of how this helper should be? Thanks. |
Idk...Maybe something like this one (not tested): def method_name help_text, condition, condition_help_text
if condition
help_text.concat(condition_help_text)
end
help_text
end |
@datWav So something separated from the form? Not the must isn't it? Do you think html help block could be easily implemented on this library? Regards |
At the moment it is only possible with a separated form. |
Cleaning up old unanswered issues. If this question is still relevant, please reopen. |
Hi.
I have the following form code:
= f.text_area :redirect_uri, help: 'Use one line per URI'
I have some extra conditional help to add, based on this old code:
How can I override the help block to do some logic inside? Is that possible with this library?
Thanks.
The text was updated successfully, but these errors were encountered: