How to articles
http://www.akitaonrails.com/2009/1/13/the-best-environment-for-rails-on-windows/#.UZW4q8ogacs
http://rubyonrails.org/download http://www.akitaonrails.com/2009/1/13/the-best-environment-for-rails-on-windows/#.UZW4q8ogacs
IDE
http://www.aptana.com/downloads/start
Language Installer
http://rubyforge.org/projects/rubyinstaller/
Package Manager.
This is ruby gems. It seems to be included in ruby 2. You can install from rubygems.org/pages/download
A Text Editor
ftp://ftp.vim.org/pub/vim/pc/gvim72.exe
Rails
Using the command line package manager, issue $> gem install rails
MVC for Ruby, built into rails 3.
http://rubyonrails.org/merb
Add on management is done through Git. You need a tool to get through git. Use the IDE above.
Git Book
http://git-scm.com/book
ORM STUFF
https://www.ruby-toolbox.com/categories/orm
http://stackoverflow.com/questions/3609482/activerecord-talk-to-two-databases
Active Record may not be the best, but it is the best supported and widely used. Sequel may be the best functionally, with Datamapper being in the top three. Below is a basic note from the Datamapper dude on when yo use SQL vs ORM to code modeling.
accepted
|
I'm the DataMapper maintainer, and I think for complex reporting you should use SQL.
While I do think someday we'll have a DSL that provides the power and conciseness of SQL, everything I've seen so far requires you to write more Ruby code than SQL for complex queries. I would much rather maintain a 5 line SQL query than 10-15 lines of Ruby code to describe the same complex operation. Please note I say complex.. if you have something simple, use the ORM's build-in finders. However, I do believe there is a line you can cross where SQL becomes simpler. Now, most apps aren't just reporting. You may have alot of CRUD type operations, for which an ORM is perfectly suited and far better than doing those things by hand. One thing that an ORM will usually provide is some sort of organization to your application logic. You can group code based around each model in the same file. It's usually there that I'll put the complex SQL query, rather than embedding it in the controller, eg:
Then I can just generate the report using User.some_complex_query . You could also push the SQL query into a view if you wanted to further cleanup this code.EDIT: By "view" in the above sentence I meant RDBMS view, rather than view in the MVC context. Just wanted to clear up any potential confusion. TERMS
|
http://guides.rubyonrails.org/migrations.html
http://lostechies.com/rayhouston/2008/05/03/connecting-activerecord-to-sql-server/
https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/wiki/Using-TinyTds
gem install activerecord
gem install activerecord-sqlserver-adapter
No comments:
Post a Comment