ruby on rails - the best track for your start up
DESCRIPTION
A presentation provoking developers to use Ruby on Rails and the framework to build their web applications.TRANSCRIPT
RUBY ON RAILSTHEBESTTRACKFORYOURSTARTUP’SJOYRIDE
DISCLAIMER:IAMAN00B!
Every start upbegins with a dream
Dreams don’t sell
Great Products Do
You need to plan& build your idea
And the best way to do that is...
Lets get started...
but where do we begin?
Code is Poetry-WORDPRESS
Don’t code. Just think.
What everything will be like?How would it rhyme?
user has_one :shopuser has_many :products
shop belongs_to :usershop has_many :shelves
products belong_to :users
shelf belongs_to :shop
user has_one :shopuser has_many :products
shop belongs_to :usershop has_many :shelves
products belong_to :users
shelf belongs_to :shop
A personal chef anyone?
script/generate
./script/generate scaffold Product name:string action:string price:integer picture:string summary:text description:text
C reateR eadU pdateD elete
A place to start.A place to learn.
Its alive! Its alive! Its alive!...or is it?
script/console
Loading development environment (Rails 2.0.2)...
Loading development environment (Rails 2.0.2)...
>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)
Loading development environment (Rails 2.0.2)...
>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)
>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>
Loading development environment (Rails 2.0.2)...
>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)
>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>
Loading development environment (Rails 2.0.2)...
>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)
>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>
>> Product.find(59).user=> #<User id: 7, login: "Prateek", email: "[email protected]", crypted_password: "a1cb20b35813eaf0c91793595078ab6030a950c3", salt: "3621a974b606c816527d7f25cd83c6ea0b9a13c0", created_at: "2008-06-07 12:34:47", updated_at: "2008-06-07 12:34:47", remember_token: nil, remember_token_expires_at: nil>
Loading development environment (Rails 2.0.2)...
>> Product=> Product(id: integer, name: string, action: string, price: integer, picture: string, summary: text, description: text, created_at: datetime, updated_at: datetime, user_id: integer)
>> Product.find(59)=> #<Product id: 59, name: "Audi TT", action: "sell", price: 100000, picture: "Audi_TT.jpg", summary: "Its a car!!", description: "lorem ipsum dolor sit amet", created_at: "2008-06-07 12:36:32", updated_at: "2008-06-07 12:36:32", user_id: 7>
>> Product.find(59).user=> #<User id: 7, login: "Prateek", email: "[email protected]", crypted_password: "a1cb20b35813eaf0c91793595078ab6030a950c3", salt: "3621a974b606c816527d7f25cd83c6ea0b9a13c0", created_at: "2008-06-07 12:34:47", updated_at: "2008-06-07 12:34:47", remember_token: nil, remember_token_expires_at: nil>
Walk with me & you’ll learn to walk
script/plugin
A login system
script/plugin source http://svn.techno-weenie.net/projects/pluginsscript/plugin install restful_authentication
script/generate authenticated user sessions
*
*interface not included
Beautiful Interface
git clone git://github.com/Lipsiasoft/lipsiadmin.git vendor/plugins/lipsiadmin
script/generate lipsiadmin
Ready to use code.Highly tested.Learning Point for beginners.
1st Application
Learn as you Go!
Do it alone!
36 HOURS
Find time
Pretend to be Sick
Pretend that you went on a vacation
There is help along the way...
irc.freenode.net #rubyonrails
http://groups.google.com/group/rubyonrails-talk
http://wiki.rubyonrails.org/rails
API http://api.rubyonrails.org/
Thank You
Any questions?
Get in [email protected]@yahoo.comhttp://twitter.com/prtksxna
• Day dreaming - http://www.flickr.com/photos/klamont/562876285/
• Warren Buffet - http://www.flickr.com/photos/7933170@N03/984596632/
• Eva Rees - http://www.flickr.com/photos/evarees/2050595096/
• Boot Load - http://www.flickr.com/photos/bootload/221087443/
• Justing Palmer - http://www.flickr.com/photos/encyte/56883622/sizes/l
• Mike Autrey - http://www.flickr.com/photos/mikeautry1/906447964/sizes/o/
Image Credits..
mostly Flickr...