2007/09/29 PHP to Rails - Webキャリアさん主催 ”PHPプログラマの為のRuby on Rails入門”

  • 7,392 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
7,392
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
116
Comments
0
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. http://localhost:3000/
  • 6. DB DB DB
  • 7. DB
  • 8. app/models/todo.rb AR::Base O/R
  • 9. Rails
  • 10. Rails
  • 11. View Controller Model Rails mongrel
  • 12. View Controller Model
  • 13. View Controller Model URL params[]
  • 14. View Controller URL Model URL params[]
  • 15. View Controller Model.find,model.save URL Model URL params[]
  • 16. View Controller Model.find,model.save URL Model URL params[]
  • 17. View Controller Model.find,model.save URL Model URL params[]
  • 18. Rails
  • 19. Todo paginate
  • 20. Todo paginate HTML
  • 21. Todo edit id 1
  • 22. :partial _ .rhtml
  • 23. @todo <textarea> @todo.description
  • 24. URL redirect
  • 25. app/models/todo.rb description
  • 26. class
  • 27. Linux
  • 28. Linux