Ruby de Rails
Upcoming SlideShare
Loading in...5
×
 

Ruby de Rails

on

  • 3,057 views

 

Statistics

Views

Total Views
3,057
Views on SlideShare
3,045
Embed Views
12

Actions

Likes
1
Downloads
76
Comments
0

1 Embed 12

http://s.deeeki.com 12

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ruby de Rails Ruby de Rails Presentation Transcript

  • 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
  • • if a==b then; obj.m(); end • a==b && obj.m • obj.m if a==b
  • DB (Model) Scaffold HTML
  • DB (Model) Scaffold HTML
  • class AddNick < ActiveRecord::Migration def self.up add_column :users, :nick, :text end def self.down remove_column :users, :nick end end