Rails 1H

4,885 views
4,801 views

Published on

1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total views
4,885
On SlideShare
0
From Embeds
0
Number of Embeds
136
Actions
Shares
0
Downloads
189
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

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

×