RailsCasts Pro episodes are now free!

Learn more or hide this

Sir Bertly's Profile

GitHub User: SirBertly

Site: www.touchinspiration.com

Comments by Sir Bertly

Avatar

Hey, Great screencast.

I am however getting an error when trying to use a block:

When I use this:

rails
<% ab_test("signup_test", ["START YOUR MEMBERSHIP","SIGN UP", "CLICK HERE"]) do |button_text| %>
  <%= button_to button_text, :new_user_registration, {:method=>:get, 'data-theme'=>'mp', :onclick=>"_gaq.push(['_trackEvent', 'Users', 'Sign Up']);"} %>  
<% end %>

I get this:

ruby
undefined method `block_called_from_erb?' for #<#<Class:0x105245f30>:0x105243ca8>

Any ideas what that means? Have you seen that before?

Thanks for all the great work and all the help.