You are on page 1of 7

INDUSTRIAL TRAINING ON

RUBY ON RAILS
Submitted by
PRABIN GUPTA - 131341
SUDHANSHU

- 131390

July 2016
Submitted in partial fulfillment for the award of the
degree
of
Bachelor of Technology
IN
COMPUTER SCIENCE AND ENGINEERING
Department of Computer Science & Engineering
JAYPEE UNIVERSITY OF ENGINEERING & TECHNOLOGY,
1

AB ROAD, RAGHOGARH, DT. GUNA-473226, M.P., INDIA

DECLARATION
We hereby declare that the work reported in the training report entitled as
Twitter Clone Using Rails Framework, in partial fulfillment for the
award of degree of Bachelor of Technology submitted at Jaypee University
of Engineering and Technology, Guna, and to IT Department, Webchamps,
MalikaGanj, New Delhi as part of curriculum as per best of our knowledge
and belief there is no infringement of intellectual property right, carried
within the premises of Webchamps IT Solutions, MalikaGanj, New Delhi.

Prabin Gupta (131341)


Sudhanshu (131390)
Department of Computer Science and Engineering
Jaypee University of Engineering and Technology
Guna, M.P., India
Date:

CERTIFICATE
This is to certify that the work titled Twitter Clone Using Rails Framework
submitted by Prabin Gupta (131341) and Sudhanshu (131390) partial
fulfillment for the award of degree of B.Tech (Computer Science and Engineering)
of Jaypee University of Engineering & Technology, Guna and to IT Department,
Webchamps, MalikaGanj, New Delhi has been carried out under my supervision.
As per best of my knowledge and belief there is no infringement of intellectual
property right.

Tarun Agarwal
Director of Webchamps It Solutions

ACKNOWLEDGEMENT
We have taken efforts in this Training. However, it would not possible without the
kind support and help of many individuals and organization. We would like to
extend our sincere thanks to all of them. We are highly indebted to Mr. Tarun
Agarwal and Mr. Sonu for their guidance and constant supervision by going
through the training and making necessary corrections, as and when required for
completion of this training. We would like to express our gratitude towards our
parents for their co-operation and encouragement which helped us in completion of
this training.
Furthermore we would also like to acknowledge with much appreciation the
crucial role of the Webchamps IT Solutions, who gave the permission to use all
required resources to complete the training.

Date:

Prabin Gupta (131341)


Sudhanshu (131390)
B.Tech (7th Semester)
Computer Science & Engineering
J.U.E.T. Guna (M.P)

Table of contents
PAGE
I.
II.
III.

DECLARATION
CERTIFICATE
ACKNOWLEDGEMENT

II
III
IV

CHAPTER 1:- INTRODUCTION

Introduction to Ruby on Rails

Guiding principles

Dont Repeat Yourself

Convention Over Configuration

REST (Representational State Transfer) for web services

MVC(Model-View-Controller architecture)

CHAPTER 2:- INSTALLING RUBY AND RAILS

Setup Ruby on Rails on Ubuntu 14.04

Overview

Installing Ruby

Installing Rails

CHAPTER 3:- GETTING STARTED

To create Rails application

Starting up the Web Server

To create a new controller

To create a new model

To run the migration

Starting up the Console

To check routes

CHAPTER 4:- MODELS

Active Record Basics

Active Record

Object Relational Mapping

Active Record as an ORM Framework

Naming Convention

CRUD: Reading and Writing Data

10

Create

10

Read

10

Update

11

Delete

11

Validations

11

Callbacks

12

Creating an Object

12

Updating an Object

12

Destroying an Object

13

Migrations

13

CHAPTER 5:- DEVISE

14

Devise

14

Its composed of 10 modules

14

Getting started

15

Controller filters and helpers

16

Configuring Models

16

CHAPTER 6:- ACTIVE ADMIN

17

Active Admin

17

Installation and Setup

17

CHAPTER 7:- PROJECT (T-CLONE)

19

Screenshots

19

Home page

19

Signup page

19

Email check page

20

Account Activated page

20

Micropost creation page

21

User index page

21

Users micropost page

22

Admin page

22

CHAPTER 8:- CONCLUSION

23

REFRENCES

24

You might also like