Is it possible to log impression with message without model?
Hi!
I want to log impressions on some actions like 'index', where i can't operate with a single object. And i want to put params or custom message to impression. Is there a way to do this?
Thank you!
Same here. I'd love to track a search action, including the query and the user, but no model.
Checked the code. You can do this:
def index
Impression.create(direct_create_statement(message: params[:q]))
...
end
Hello, I can't figured out this:
I have a :home action inside a static_pages controller without a model. Where I list some 'exhibits' models. I wanto to get the count of visits inside this static_pages#home.
How can I see the count inside my home.html,erb view?. I think you did something similar?...
Thanks.
Same here, I can track controller action but how should I view it??? It's nowhere in document.