Difference between revisions of "EWT Class13"
esse quam videri
(→NEW Rails) |
|||
Line 32: | Line 32: | ||
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial | http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial | ||
− | + | <code> | |
+ | rails Blog | ||
+ | ruby generate scaffold Post title:string body:text | ||
+ | edit posts | ||
+ | validates_presence_of :title | ||
+ | rake db:migrate | ||
+ | script\server start | ||
+ | ruby script\generate scaffold Comment post_id:integer body:text | ||
+ | rake db:migrate | ||
+ | edit routs.rb | ||
+ | map.root :controller => 'posts' | ||
+ | map.resources :posts, :has_many => :comments | ||
+ | </code> | ||
==AJ sabotages the wiki== | ==AJ sabotages the wiki== |
Revision as of 17:46, 29 April 2008
ASP.NET
C# 1999 ECMA standard from MS or Mono
- Version 3.5 http://www.asp.net/
- http://www.asp.net/downloads/
- tutorials http://www.asp.net/learn/videos/
Not specific to C# the framework can use any .net language
Editor Visual studio
Mono
Mono home page
Getting mono http://www.mono-project.com/Obtaining_Mono
NEW Rails
whats up with rake?
rake tutorial http://www.railsenvy.com/2007/6/11/ruby-on-rails-rake-tutorial
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
rails Blog
ruby generate scaffold Post title:string body:text
edit posts validates_presence_of :title
rake db:migrate script\server start ruby script\generate scaffold Comment post_id:integer body:text rake db:migrate
edit routs.rb map.root :controller => 'posts' map.resources :posts, :has_many => :comments
AJ sabotages the wiki
but only because you can run Java in JavaScript now.
In related news, you can do the same with Ruby.