0
class User < ActiveRecord::Base
end
class User < ActiveRecord::Base
    has_many :books
end
class User < ActiveRecord::Base
    set_table_name 'user'
    set_primary_key 'pkey'
end
ITPro
View
 Controller
Model
      Rails
    mongrel
View



    Controller


Model
View



    Controller


Model

                        URL
             params[]
View



    Controller

                          URL
Model

                        URL
             params[]
View



    Controller
   Model.find,model.save
                          URL
Model

                        URL
          ...
View



    Controller
   Model.find,model.save
                          URL
Model

                        URL
          ...
View



    Controller
   Model.find,model.save
                          URL
Model

                        URL
          ...
app/models/todo.rb




description
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Rails 1H
Upcoming SlideShare
Loading in...5
×

Rails 1H

4,625

Published on

1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total Views
4,625
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
188
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Rails 1H"

  1. 1. class User < ActiveRecord::Base end
  2. 2. class User < ActiveRecord::Base has_many :books end
  3. 3. class User < ActiveRecord::Base set_table_name 'user' set_primary_key 'pkey' end
  4. 4. ITPro
  5. 5. View Controller Model Rails mongrel
  6. 6. View Controller Model
  7. 7. View Controller Model URL params[]
  8. 8. View Controller URL Model URL params[]
  9. 9. View Controller Model.find,model.save URL Model URL params[]
  10. 10. View Controller Model.find,model.save URL Model URL params[]
  11. 11. View Controller Model.find,model.save URL Model URL params[]
  12. 12. app/models/todo.rb description
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×