runtimerevolution / survey

Survey is a Rails Engine that brings quizzes, surveys and contests into your Rails application.
MIT License
265 stars 127 forks source link

session based #6

Open chalmagean opened 11 years ago

chalmagean commented 11 years ago

Hey guys,

I was wondering if it's possible to use the survey without binding it to a specific user. For example if I want to ask a visitor a question but he doesn't have an account yet.

Cezar

rjst commented 11 years ago

Hi mixandgo,

The gem was initially extracted from a project that didn't actually have users, so it's possible. With that being said, it's easier to use if you do have an object abstraction for your participant.

If that's impossible to you, you can still use survey, but you'll probably have to manually configure some of the object associations with your model, namely the participant. If you have any issues doing that, let us know and maybe we can help you.

regards, Ricardo

chalmagean commented 11 years ago

It would actually have to work independent of the user model. I'd say it should rely more on cookies than the AR model since a user can be a visitor that never signs up, or it can be an already registered user.

Another very useful feature (not sure if this is already built in) would be to be able to define a per page survey. This would be useful to test the effectiveness of a page.

That said, I'd be glad to help build those features.