Ruby on Rails is a web application framework that follows the model-view-controller (MVC) pattern and includes everything needed to build database-backed web applications using the Ruby programming language. It aims to make web development more productive by utilizing conventions that reduce the need for configuration and promote reuse of common tasks like connecting to databases. The framework provides models for interacting with the database, views for displaying the user interface, and controllers that handle and respond to user input by manipulating models and rendering views.
Welcome to presentation on Spring boot which is really great and relatively a new project from Spring.io. Its aim is to simplify creating new spring framework based projects and unify their configurations by applying some conventions. This convention over configuration is already successfully applied in so called modern web based frameworks like Grails, Django, Play framework, Rails etc.
Introduction to angular with a simple but complete projectJadson Santos
A simple front end project with angular. Its show how to create your first components, include bootstrap templates, create routes and build the project to production.
This Edureka "Node.js Express tutorial" will help you to learn the Node.js express fundamentals with examples. Express.js is flexible and minimal node.js web application framework that provides robust set of features to develop mobile and web applications. It facilitates the rapid development of node.js applications. Below are the topics covered in this tutorial:
1) Why Express.js?
2) What is Express.js?
3) Express Installation
4) Express Routes
5) Express Middlewares
Welcome to presentation on Spring boot which is really great and relatively a new project from Spring.io. Its aim is to simplify creating new spring framework based projects and unify their configurations by applying some conventions. This convention over configuration is already successfully applied in so called modern web based frameworks like Grails, Django, Play framework, Rails etc.
Introduction to angular with a simple but complete projectJadson Santos
A simple front end project with angular. Its show how to create your first components, include bootstrap templates, create routes and build the project to production.
This Edureka "Node.js Express tutorial" will help you to learn the Node.js express fundamentals with examples. Express.js is flexible and minimal node.js web application framework that provides robust set of features to develop mobile and web applications. It facilitates the rapid development of node.js applications. Below are the topics covered in this tutorial:
1) Why Express.js?
2) What is Express.js?
3) Express Installation
4) Express Routes
5) Express Middlewares
Leave your flames and preconceptions about CSS-in-JS at the door. I love CSS and JS no matter who's where. I'll talk about the benefits of, and why I love, the styled-components library. I'll show you the fundamental power of styled-components, and illustrate why it's my favorite complement to React.
Introduction, Technologies included in ajax,
Ajax Evolution,
Pro’s and Con’s,
Beginners Problem?,
Types and choices of request,
Ajax on hands (Example),
Global Ajax Event Handlers,
Helper Functions,
Low Level interface,
Shorthand Methods for Ajax request.
This presentation will demonstrate how you can use the aggregation pipeline with MongoDB similar to how you would use GROUP BY in SQL and the new stage operators coming 3.4. MongoDB’s Aggregation Framework has many operators that give you the ability to get more value out of your data, discover usage patterns within your data, or use the Aggregation Framework to power your application. Considerations regarding version, indexing, operators, and saving the output will be reviewed.
The presentation gives an overview about the ruby programming language and Rails, the web framework built over it ruby. It does highlight some of the key features of ruby programming language and mentions the key benefits of using Rails framework for web application development.
Ruby on Rails, often simply referred to as Rails, is an open-source web application framework written in Ruby. It follows the Model-View-Controller (MVC) architectural pattern, which separates an application into three interconnected components to promote code Ruby Rails Web Development organization and maintainability. Ruby on Rails has gained popularity for its focus on developer productivity and its convention-over-configuration philosophy, which significantly reduces the need for boilerplate code and configuration.
Leave your flames and preconceptions about CSS-in-JS at the door. I love CSS and JS no matter who's where. I'll talk about the benefits of, and why I love, the styled-components library. I'll show you the fundamental power of styled-components, and illustrate why it's my favorite complement to React.
Introduction, Technologies included in ajax,
Ajax Evolution,
Pro’s and Con’s,
Beginners Problem?,
Types and choices of request,
Ajax on hands (Example),
Global Ajax Event Handlers,
Helper Functions,
Low Level interface,
Shorthand Methods for Ajax request.
This presentation will demonstrate how you can use the aggregation pipeline with MongoDB similar to how you would use GROUP BY in SQL and the new stage operators coming 3.4. MongoDB’s Aggregation Framework has many operators that give you the ability to get more value out of your data, discover usage patterns within your data, or use the Aggregation Framework to power your application. Considerations regarding version, indexing, operators, and saving the output will be reviewed.
The presentation gives an overview about the ruby programming language and Rails, the web framework built over it ruby. It does highlight some of the key features of ruby programming language and mentions the key benefits of using Rails framework for web application development.
Ruby on Rails, often simply referred to as Rails, is an open-source web application framework written in Ruby. It follows the Model-View-Controller (MVC) architectural pattern, which separates an application into three interconnected components to promote code Ruby Rails Web Development organization and maintainability. Ruby on Rails has gained popularity for its focus on developer productivity and its convention-over-configuration philosophy, which significantly reduces the need for boilerplate code and configuration.
As presented to the Milwaukee Alt.Net group on November 21st, 2011.
UPDATE April 19, 2012: added some domain logic organization slides using Fowler's 4 basic patterns.
Since its public unveiling in 2004, Ruby on Rails has taken the web development world by storm. Rails is an open-source framework, built using the Ruby programming language, that promotes high productivity and reduced development times for real-world web sites. This talk will provide a high-level tour of the features of Ruby on Rails. It will also show how this technology is being leveraged to create on-line businesses and web sites. You don't have to be a programmer to learn more about how Ruby on Rails can power your on-line business.
Building Application with Ruby On Rails FrameworkEdureka!
Ruby on Rails training certifies you with in demand Web Application Technologies to help you grab the top paying IT job title with Web Application skills and expertise in Full Stack. Rails is written in Ruby, which is a language explicitly designed with the goal of increasing programmer happiness. This unbiased and universal view makes Ruby on Rails unique in today's Job market as a leader in the Web Application platform.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
Ruby On Rails Basics
1. Ruby On Rails
Basics
Amit Solanki
http://amitsolanki.com
2. Introduction
Web-application framework - includes everything needed to create
database-backed web applications according to the Model-View-
Control(MVC) pattern
Built on Ruby - Language of the year 2006
Extracted by David Heinemeier Hansson(DHH) from his work on
Basecamp, a project management tool by 37signals
Released as open source in July 2004 - more than 1400 contributors
4. Framework - Why do we need it?
Consider following Python Code:
#!/usr/bin/env python
import MySQLdb
print "Content-Type: text/htmln"
print "<html><head><title>Books</title></head>"
print "<body>"
print "<h1>Books</h1>"
print "<ul>"
connection = MySQLdb.connect(user='mysql_user', passwd='mysql_pass', db='my_database')
cursor = connection.cursor()
cursor.execute("SELECT name FROM books ORDER BY pub_date DESC LIMIT 10")
for row in cursor.fetchall():
print "<li>%s</li>" % row[0]
print "</ul>"
print "</body></html>"
connection.close()
5. Framework - Why do we need it?
What happens when multiple parts of your application need to connect to the
database?
- database-connecting code need to be duplicated in each individual CGI script.
Instead, we could refactor it into a shared function
Should a developer really have to worry about printing the “Content-Type”
line and remembering to close the database connection?
- this reduces programmer productivity and introduces opportunities for mistakes. These
setup- and teardown-related tasks would best be handled by some common
infrastructure
What happens when this code is reused in multiple environments, each with a
separate database and password?
- some environment-specific configuration becomes essential
What happens when a Web designer who has no experience coding Python
wishes to redesign the page?
- one wrong character could crash the entire application. Ideally, the logic of the page — the
retrieval of book titles from the database — would be separate from the HTML display of
the page, so that a designer could edit the latter without affecting the former.
6. Framework - Why do we need it?
The MVC Implementation:
# models.py (the database tables)
from django.db import models
class Book(models.Model):
name = models.CharField(max_length=50)
pub_date = models.DateField()
# views.py (the business logic)
from django.shortcuts import render_to_response
from models import Book
def latest_books(request):
book_list = Book.objects.order_by('-pub_date')[:10]
return render_to_response('latest_books.html', {'book_list': book_list})
# urls.py (the URL configuration)
from django.conf.urls.defaults import *
import views
urlpatterns = patterns('',
(r'^latest/$', views.latest_books),
)
# latest_books.html (the template)
<html><head><title>Books</title></head>
<body>
<h1>Books</h1>
<ul>
{% for book in book_list %}
<li>{{ book.name }}</li>
{% endfor %}
</ul>
</body></html>
7. Framework - Why do we need it?
The models.py file contains a description of the database table, represented by
a Python class. This class is called a model. Using it, you can create, retrieve,
update and delete records in your database using simple Python code rather
than writing repetitive SQL statements
The views.py file contains the business logic for the page. The latest_books()
function is called a view
The urls.py file specifies which view is called for a given URL pattern. In this
case, the URL /latest/ will be handled by the latest_books() function. In other
words, if your domain is example.com, any visit to the URL http://
example.com/latest/ will call the latest_books() function
The latest_books.html file is an HTML template that describes the design of
the page. It uses a template language with basic logic statements — e.g., {%
for book in book_list %}
8. Running Rails on your machine
Install ruby - http://ruby-lang.org/
Windows: One click installer
Linux: Installer tools such as apt-get and yum
Mac OS X: Macports
Best practice is to install by compiling from source
Install rubygems - http://rubyforge.org
Install rails gem - http://rubyonrails.org/download
gem install rails
may require sudo access on unix/linux based OS
Editors: TextMate, VIM, Emacs, jEdit, SciTE
IDE: RadRails, RubyMine, 3rd Rail, NetBeans, Komodo
9. Features
Convention over Configuration
Don't Repeat Yourself (DRY)
Agile
Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan
Easy integration with features with AJAX and RESTful
Connects to most of the databases - just install DB driver
Latest stable release is 2.3 => 3.0 Coming soon
Rails is FUN
11. Framework Structure
ActiveRecord
an object relationship mapping (ORM) system for database access
ActiveResource
provides web services
before 2.0 => ActionWeb
ActionPack
ActionController
ActionView
ActiveSupport
Utility classes and standard library extensions from Rails
ActionMailer
Plugins to extend capability
12. Directory Structure
.
|-- README Installation and usage information
|-- Rakefile Build script
|-- app Model, view and controller files go here
| |-- controllers
| |-- helpers
| |-- models
| |-- views
|-- config Configuration and database connection parameters
| |-- boot.rb
| |-- database.yml
| |-- environment.rb
| |-- environments
| |-- initializers
| `-- routes.rb
|-- db Schema and migration information
| |-- migrate
|-- doc Autogenerated documentation
|-- lib Shared code
|-- log Log files produced by your application
|-- public Web-acccessible directory. Your application runs from here
|-- script Utility scripts
|-- test Unit, functional, and integration tests, fixtures, and mocks
|-- tmp Runtime temporary files
|-- vendor Imported code
`-- plugins
14. config/
Every environment has a database configuration in database.yml
Global configuration file - environment.rb
Individual configuration file under config/environments
production.rb
development.rb
test.rb
Easy to add custom environments
e.g. for a staging server create staging.rb
Start server by passing RAILS_ENV
ruby script/server RAILS_ENV=‘production’
mongrel_rails start
17. Some Quotes
“Rails is the most well thought-out web development framework I’ve ever used.
And that’s in a decade of doing web applications for a living. I’ve built my
own frameworks, helped develop the Servlet API, and have created more than a
few web servers from scratch. Nobody has done it like this before.”
-James Duncan Davidson, Creator of Tomcat and Ant
“Ruby on Rails is a breakthrough in lowering the barriers of entry to
programming. Powerful web applications that formerly might have taken
weeks or months to develop can be produced in a matter of days.”
-Tim O'Reilly, Founder of O'Reilly Media
“It is impossible not to notice Ruby on Rails. It has had a huge effect both in
and outside the Ruby community... Rails has become a standard to which
even well-established tools are comparing themselves to.”
-Martin Fowler, Author of Refactoring, PoEAA, XP Explained
“What sets this framework apart from all of the others is the preference for
convention over configuration making applications easier to develop and
understand.”
-Sam Ruby, ASF board of directors
18. Some Quotes (contd.)
“Before Ruby on Rails, web programming required a lot of verbiage, steps and
time. Now, web designers and software engineers can develop a website much
faster and more simply, enabling them to be more productive and effective in
their work.”
-Bruce Perens, Open Source Luminary
“After researching the market, Ruby on Rails stood out as the best choice. We
have been very happy with that decision. We will continue building on Rails
and consider it a key business advantage.”
-Evan Williams, Creator of Blogger, ODEO, and Twitter
“Ruby on Rails is astounding. Using it is like watching a kung-fu movie,
where a dozen bad-ass frameworks prepare to beat up the little newcomer only
to be handed their asses in a variety of imaginative ways.”
-Nathan Torkington, O'Reilly Program Chair for OSCON
“Rails is the killer app for Ruby.”
Yukihiro Matsumoto, Creator of Ruby