Getting Started

59 views
Skip to first unread message

bertly_the_coder

unread,
Jul 25, 2011, 1:51:01 PM7/25/11
to vanity-talk
Hi,

I'm trying to get started with A/B testing using Vanity and I seem to
be meeting some things.
1. Where does the vanity command came from? I'm in the project root
and when I type that command I get:
-bash: vanity: command not found.
How do I get that command to work?
2. When I try and go to the dashboard, I get the following error:
"undefined method `strftime' for nil:NilClass."
I'm I missing something?

bertly_the_coder

unread,
Jul 25, 2011, 2:44:30 PM7/25/11
to vanity-talk
BTW: I'm using rails 3.

One more thing. I'm trying to set up a test in a block like so:

<% ab_test :sign_up_options do |button_text| %>
<%= button_to button_text, :new_user_registration,
{:method=>:get, 'data-theme'=>'mp'} %>
<% end %>
and I'm getting this error:
undefined method `block_called_from_erb?' for #<#<Class:0x1054b72f0>:
0x1054b0310>

I thought that block_called_from_erb? had been removed in Rails 3?
Doesn't this gem support Rails 3?


Thanks in advance for your help.

bertly_the_coder

unread,
Jul 26, 2011, 1:44:30 PM7/26/11
to vanity-talk
OK, got the first problem working......
1) I had to add the path to the vanity gem to my .bash_profile file
to use the vanity command.

Now about the nil error and calling this in a block....any ideas guys?

Thanks and Regards,
Reply all
Reply to author
Forward
0 new messages