You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm loading a page with jQuery's load() method. It still hits the rails controller for the html and then passes it back and jquery loads a particular div within the page.
In development. I can pass in the ab_test query and get the proper layout. The test is 'product_cart_form' and my alternative is flipped. The div it's rendering is 'insertion' which contains my ab_test.
This hits the rails controller and properly displays the right test html. However, the test never shows up unless I place the parameter in and also never finishes correctly. Always going to the default.
Is the test not initialized in the controller? If not, can I manually start it, either via javascript or in the rails controller?
EDIT:
The ab_test was occurring in a partial one more level deep then the div that was being rendered by jquery. When I switched the test to testing two different partials instead of using a ab_test block inside one partial it works flawlessly. Not sure what to make of the prior problem.
The text was updated successfully, but these errors were encountered:
Caching is disabled. It's working in a production environment so I haven't put much thought into it since. I'll let you know if I can narrow it down more.
I'm loading a page with jQuery's load() method. It still hits the rails controller for the html and then passes it back and jquery loads a particular div within the page.
In development. I can pass in the ab_test query and get the proper layout. The test is 'product_cart_form' and my alternative is flipped. The div it's rendering is 'insertion' which contains my ab_test.
load(href + '?product_cart_form=flipped .insertion')
This hits the rails controller and properly displays the right test html. However, the test never shows up unless I place the parameter in and also never finishes correctly. Always going to the default.
Is the test not initialized in the controller? If not, can I manually start it, either via javascript or in the rails controller?
EDIT:
The ab_test was occurring in a partial one more level deep then the div that was being rendered by jquery. When I switched the test to testing two different partials instead of using a ab_test block inside one partial it works flawlessly. Not sure what to make of the prior problem.
The text was updated successfully, but these errors were encountered: