Rails 1H

  • 4,563 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
4,563
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
188
Comments
1
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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