21 Apr '12, 12am

"RailsでMongoDB"

class PeopleController < ApplicationController def index @people = Person.all end def show @person = Person.find(params[:id]) end def new @person = Person.new end def edit @person = Person.find(params[:id]) end def create @person = Person.new(params[:person]) if @person.save redirect_to @person else render :action => 'new' end end def update @person = Person.find(params[:id]) @person.attributes = params[:person] if @person.save redirect_to @person else render :action => 'edit' end end def destroy @person = Person.find(params[:id]) @person.destroy redirect_to :people end end

Full article: http://www.oiax.jp/rails/zakkan/rails_and_mongodb.html

Tweets

This Week in Ruby: Rails 3.2, Rails Tutorial, a...

rubyinside.com 20 Apr '12, 4am

It's the latest Web-based syndication of Ruby Weekly , the weekly Ruby and Rails e-mail newsletter (which just tipped 11K ...

Rails for API applications (rails-api) released

rubyflow.com 21 Apr '12, 12am

Rails for API applications (rails-api) released Posted by wyeworks on April 21, 2012 — 0 comments Rails for API applicatio...

Two for one: jqtree-rails and jquery-cookie-rails

rubyflow.com 21 Apr '12, 9am

Two for one: jqtree-rails and jquery-cookie-rails Posted by c00lryguy on April 21, 2012 — 1 comment I just created jqtree-...

Getting Started with Rails:

guides.rubyonrails.org 19 Apr '12, 1am

Rails is a web application development framework written in the Ruby language. It is designed to make programming web appl...

Learning Grails - A beginners guide for the Rai...

rubyflow.com 20 Apr '12, 2pm

Learning Grails - A beginners guide for the Rails developer Posted by cavneb on April 20, 2012 — 1 comment I have started ...

A complete tutorial for Rails app using

rubyflow.com 19 Apr '12, 4am

A complete tutorial for Rails app using ... Posted by mattslay on April 19, 2012 — 0 comments A complete tutorial for Rail...

Rails Internals: Active Model Observers

rubyflow.com 18 Apr '12, 12pm

Rails Internals: Active Model Observers Posted by oscardb on April 18, 2012 — 0 comments New article in the Rails internal...

7 Barebones Rails Apps To Kick Start Your Devel...

railsinside.com 18 Apr '12, 4am

7 Barebones Rails Apps To Kick Start Your Development Process By Peter Cooper — September 18th, 2008 — 20 Comments In Else...