
Tech Revolvers

Adding time at which tweet or any text created in rails So, for adding time use the above code if tweet or text was added before 24 hours then it will display as 2 hours ago or 4 hours ago and if more than a day time then it will display date. <% if Read more

LINK _TO tag color Working on rails is quite different. The link_to tag is used to give links to texts on rails. To change its color, just add a line style: ” color: color_name” refer the image above for more clearity. Read more

RAILS adding image through home.scss file or any .scss file For working on .scss file we have to take care of how to add an image though this file. So first of all we have to use simple background-image tag background-image: url(‘your image url’); now add these lines , -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: Read more

NameError in Devise::RegistrationController#create If you get this kind of error while using Devise in your rails project, you have landed to right place. Let us first know why we got this error. This error indicates that you have not correctly fixed the permissions on devise. IS THE USER MARKED CONFIRMABLE???? Now we directly jump to Read more

“Sometimes glass glitters more than diamonds because it has more to prove.” SHOWING OFF TREND These days the status is being more important to people than anything. The trend of showing off in lifestyle, marriages are so common. DOGS – Dogs have attracted the society towards them. Some people say they are the best baby Read more