Difference between revisions of "EWT Class13"

esse quam videri
Jump to: navigation, search
(NEW Rails)
 
(2 intermediate revisions by one other user not shown)
Line 34: Line 34:
 
<pre>
 
<pre>
 
rails Blog
 
rails Blog
ruby generate scaffold Post title:string body:text
+
ruby script\generate scaffold Post title:string body:text
 
     edit posts
 
     edit posts
 
         validates_presence_of :title
 
         validates_presence_of :title
Line 41: Line 41:
 
ruby script\generate scaffold Comment post_id:integer body:text
 
ruby script\generate scaffold Comment post_id:integer body:text
 
rake db:migrate
 
rake db:migrate
     edit routs.rb
+
     edit routes.rb
 
         map.root :controller => 'posts'
 
         map.root :controller => 'posts'
 
         map.resources :posts, :has_many => :comments
 
         map.resources :posts, :has_many => :comments
Line 50: Line 50:
  
 
In related news, you can do the same with [http://ejohn.org/blog/ruby-vm-in-javascript/ Ruby].
 
In related news, you can do the same with [http://ejohn.org/blog/ruby-vm-in-javascript/ Ruby].
 +
 +
[[Category:IAM Classes]][[Category:Emergent Web Technologies]]

Latest revision as of 19:06, 4 August 2008

ASP.NET

C# 1999 ECMA standard from MS or Mono

Not specific to C# the framework can use any .net language

more .net languages

ASP.NET MVC Framework

Editor Visual studio

Mono

Mono home page

Getting mono http://www.mono-project.com/Obtaining_Mono

NEW Rails info

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 script\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 routes.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.