Rails ActionMailer STARTTLS bug solution

This is a common rails mailer issue and bug new programmers, Net::SMTPAuthenticationError in InviteController#send_email_invites 530 5.7.0 Must issue a STARTTLS command first. u10sm46215072pbr.12 the solution of this problem is to include following settings in your environment.rb file config/environments/development.rb ———————————–  

Chargify API : Charge card using Basic authentication and Post Request

require “net/https” require “uri” data = Hash.new data[“charge”] = Hash.new data[“charge”][“amount”] = amount_to_charge data[“charge”][“memo”] = ‘This is the description of the one time charge.’ or

Update your code in Git Repository

These are some basic steps to get the code from your Git Repository and push the updated code. 1) Clone code available on your  git account to local or dev.  git clone <url of your repository> eg: git clone https:\\github.com\<user>\<repo> It

Add your Project into Git

Many time we need to use some version control system.GitHub is a web-based hosting service for projects that use the Git revision control system.It is written using Ruby on Rails by GitHub,Inc. For Initial Setup of your account and repository

Storing Sessions in the Database

We generally use cookie based session storage technique.Storing sessions in the database in however very important. Rails provide an built-in feature using rake to create session table . Create Migration $ rake db:sessions:create The above command will create the migration