Upload
fuad-omar
View
2.991
Download
0
Embed Size (px)
DESCRIPTION
In July 2004 David Heinemeier Hansson aka dhh, a Danish programmer came up with a web application framework while building a project management tool named Basecamp. In 2012 it is now one of the fastest growing web frameworks in world. Tens of Thousands Rails applications like Basecamp, Twitter, Github, Groupon, and our own (in Bangladesh) akhoni.com and bdipo.com are live. Ruby on Rails (RoR) claims to be a breakthrough in lowering the barriers of entry to programming. Powerful web applications that formerly took months to develop can be produced now in a days. RoR is now official platform for many startup incubators. This was presented in Basis Softexpo 2012 and arranged by Nascenia IT, the leading Ruby on Rails development company in Bangladesh. In this session presenters introduced and explored the zeal of RoR. Also they talked about how this can optimize programmer's happiness and sustainable productivity. Continuation of the slide will be found at : http://slidesha.re/ABcopT
Citation preview
Ruby on Rails
Ride on the fast track of web
“Accumulated knowledge of the
world to your fingertip”
“We are the masters
They are the slaves”
2.days.ago =>Thu, 23 Feb 2012 14:11:45 EST -05:00
‘fuad bin omar’.reverse =>ramo nib dauf
‘fuad bin omar’.capitalize =>Fuad bin omar
‘fuad bin omar’.length =>13
+
Convention
Configuration
Over
One Class Per Table
Class User < ActiveRecord::Base
end
Validations
Class User < ActiveRecord::Base
validates_presence_of :login,:name
validates_uniqueness_of :login
end
class User < ActiveRecord::Base
has_many :posts
end
class Post< ActiveRecord::Base
belongs_to :user
end
User.create!(:login => ‘fuad’,
:name => ‘Fuad Omar’)
user = User.new(:login =>
‘fuad’, :name => ‘Fuad Omar’)
user.save!
user = User.new
user.login = ‘fuad’
user.name = ‘Fuad Omar’
user.save!
user = User.first
user = User.find(12)
user = User.find_by_name(‘Fuad’)
posts = user.posts
user = User.find(12)
posts =
user.posts.where(‘created_at >’,
Date.today – 7.days.ago)
posts = posts.order(‘title‘)
user = User.find(1)
user.name = ‘Fuad Bin Omar’
User.save
2,35,000
Fuad Omar Co-Founder, Nascenia IT
www.nascenia.com
www.facebook.com/nascenia
www.linkedin.com/in/fuadomar
@fuadcse
http://www.softexpo.com.bd/technical_details.php?id=9
To see 2nd part of this presentation visit:
http://www.slideshare.net/ashrafuzzaman/riding-on-rails-part-2
Presented At