Difference between revisions of "EWT Class13"

esse quam videri
Jump to: navigation, search
(NEW Rails info)
(NEW Rails info)
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

Revision as of 21:09, 29 April 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.