I'm using the recaptcha gem (github.com/ambethia/recaptcha) but have been
unable to change from the default theme. The google documentation indicates
that there are four base themes, one of which is 'white'. The recaptcha_tags docs
identify a :display option:

:display - Takes a hash containing the theme and tabindex options per the API. (default nil)

I'm calling the function this way:

<%= recaptcha_tags :display => { :theme => "white" } %>

But I only get the default theme, not the white theme. I inserted a puts()
into the source of the recaptcha gem where the options are parsed and get
the following:

Options: {:public_key=>"XXXXXXXXXXXXX-YYYYYYYYYYYYYYY", :error=>"expression"}

I've tried every variation I can think of to pass a :display option with a
hash of :theme => "white" and can't get it to work. What am I doing wrong
here?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/dzIAWCyTou0J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 6, '12 at 8:01p
activeFeb 6, '12 at 8:01p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Don: 1 post

People

Translate

site design / logo © 2022 Grokbase