Posted by Herbert Poul |
|
so ... i'll give Ruby On Rails a try .. Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
well .. it seems "OS X: Ships with broken Ruby, follow this guide" -> http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
since i don't really want to compile everything by hand.. i'll try ports ... Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
even better .. drag and drop installer for the mac : http://locomotive.raaum.org/
and.. a ruby on rails site on apple.com: http://developer.apple.com/tools/rubyonrails.html Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
downloaded locomotive, created a new rubyonrails project and ran sloccount:
SLOC Directory SLOC-by-Language (Sorted) 60 config ruby=60 7 test ruby=7 5 app ruby=5 4 public ruby=4 0 components (none) 0 db (none) 0 doc (none) 0 lib (none) 0 log (none) 0 script (none) 0 tmp (none) 0 top_dir (none) 0 vendor (none) Totals grouped by language (dominant language first): ruby: 76 (100.00%) Total Physical Source Lines of Code (SLOC) = 76 Development Effort Estimate, Person-Years (Person-Months) = 0.01 (0.16) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 0.10 (1.25) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 0.13 Total Estimated Cost to Develop = $ 1,805 (average salary = $56,286/year, overhead = 2.40). Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
well ... since everyone is talking about mysql with rubyonrails . i'm going to compile mysql .. instead of going for postgresql .. Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
as described at http://developer.apple.com/tools/rubyonrails.html i'm not creating plain SQL statements but "migration" files ..
herbert-pouls-computer:~/dev/frameworkcomparison/rubyonrails/BarCrud herbert$ script/generate migration bar create db/migrate create db/migrate/001_bar.rb herbert-pouls-computer:~/dev/frameworkcomparison/rubyonrails/BarCrud herbert$ which created: class Bar < ActiveRecord::Migration def self.up end def self.down end end Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
thanks to http://rubygarden.org/ruby/page/show/InstallingEmacsExtensions (or better said.. the google cache of this page) i can now get started developing ruby on rails with emacs... Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
i finally installed mysql correctly ... Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
btw. i will leave authentication out of my way for now .. it seems to be a bit more complicated
http://wiki.rubyonrails.com/rails/pages/Acts_as_authenticated Hey, we have Signatures !!! Great, isn't it ? ;) |