Drag and drop is a very common feature. In which you drag an element and drop it somewhere else. Drag and drop is a standard feature in HTML5, You can make any element draggable. Below are the steps on how to achieve the same. Below is a demo of the... »
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exceptionend What happens if the token is missing or wrong depends on the option with which protect_from_forgery method is called. In Rails there are three options:... »
What if i’m using rails as api, so my frontend is seperated from rails can i still prevent csrf and how? So lets take an example where we use ember for frontend and rails as api. In this case, apart from adding protect_from_forgery in application controller you have to do... »
Most apps need to be able to store some data about a user. Maybe itâ€™s a user id, or a preferred language. session is the perfect place to put this kind of data. Little bits of data you want to keep around for more than one request. Sessions are easy... »
Best practices while Using Ooor gem for making rpc calls to Odoo(openerp) from ruby framework Odoo(openerp) is a management software written in python using xml and qweb engine. Odoo is all the rage for ERP back-offices, but sometimes you want freedom and scalablity for your web front ends which you... »
Paytm. The fast growing payment network, it’s quite easy to integrate paytm payment in your rails app. Here is simple step by step guide on the same. 1. Register on paytm payment website. For registering on paytm payment as a merchant you need to sign up here, you need TAN... »
GUI to write and edit posts www.cyobb.com. I always wanted a GUI to write and edit posts with the power of github pages and flexibility of jekyll themes. So, i have created one, which automates deployment and provides a number of options right at one place all GUI. Here you... »
Open the image you want to add in a new tab, If it’s on drive you can use open in a new tab option.
Then from this new tab drag the image to your tab where gmail is open and drop the image in compose box.
Common errors in devise undefined method user_confirmation_path undefined method current_user undefined method authenticate_user Common reasons for these errors Make sure your devise model’s name is user and not something like service_user. Make sure you have defined routes devise_scope :service_user do in routes.rb. You can check the same by running rake... »