Recent research by the Pew Research Center revealed that the top reasons people quit their job in 2021 were due to low pay, lack of advancement opportunities and feeling disrespected at work…
It is not a good practice to show bulk of data in one page. So we use pagination to show bulk data. Luckily Rails provide many pagination gems to implement pagination in your app.
There are many pagination gems in rails but I prefer Kaminari because of easily implementable and customizable features.
How to use kaminari in your rails app?
These are the steps to implement kaminari in rails app.
rails g kaminari:config
3. Add page(params[:page]) in front get data query in controller function.
4. Add <%= paginate @attribute %> in html view and it is done. Kaminari automatically handles each and everything for it.
For more customization you can read its documentation by clicking the following link.
We have seen how to predict sentiment of text using fully connected neural networks (NN) in this story. Here we will use the LSTM which is a recurrent-neural-network(RNN) to analyse the sentiment of…
Striving to always be the very best that i truly can, A man who pertains to wisdom and not just of age I wouldn’t enter it with simplicity and never with a gauge, A clever man in the making Truth…
So far about medical topics, education, and silly little stuff. I am finishing up a story about how influencers can be more successful by wearing masks. I would especially like to write something…