· 1 min read

Screencast: Überblick über Rails 3.1

Downloads in verschiedenen Formaten:

mp4 m4v webm ogv

Resourcen:

rvm 1.9.2@railspre --create
gem install rails --pre
rails new todo
cd todo
bundle
rails g scaffold project name:string
rake db:migrate
rake test


p = Project.create!(:name => "Yardwork")
p2 = Project.find(1)
p.object_id == p2.object_id

alert "Hello world!"

has_many :tasks
has_many :assigments, :through => :tasks
has_many :users, :through => :assignments

attr_accessible :name, :as => :admin

@project.update_attributes(params[:project], :as => :admin)

<%= link_to "Edit", edit_project_url(@project, :subdomain => "foo") %>

Back to Blog