Skip to content
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

Static control without label #212

Closed
soullivaneuh opened this issue Mar 30, 2015 · 2 comments
Closed

Static control without label #212

soullivaneuh opened this issue Mar 30, 2015 · 2 comments

Comments

@soullivaneuh
Copy link

With the following code:

  = f.static_control do
    = link_to '#', class: 'js-toggle-colors-link' do
      Customize colors

We got this error:

undefined method `humanize' for nil:NilClass

A label option must be set to get it work.

Could be nice to have static control without label, isn't it?

Thanks.

@datWav
Copy link

datWav commented Apr 24, 2015

You need to pass a symbol to the method. = f.static_control :colors do

@mattbrictson
Copy link
Contributor

Cleaning up old unanswered issues. If this question is still relevant, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants