Can Rails work without database?

I've gone through some tutorials and found that every example they made defines a Database. I wander can Rails work without database.

Yes it can. It's very common for rails apps to use a database but I've written apps that don't.

Fred

Zhao Yi wrote:

I've gone through some tutorials and found that every example they made defines a Database. I wander can Rails work without database.

Sure it can. Check this out:

or http://agilewebdevelopment.com/plugins/activerecord_base_without_table

Zhao Yi wrote: > I've gone through some tutorials and found that every example they made > defines a Database. I wander can Rails work without database.

Sure it can. Check this out:http://media.pragprog.com/titles/fr_rr/NoDatabase.pdf

It's actually easier than that now - you just need to say you don't want activerecord loaded (in environment.rb) and comment out initializers (in config/environment.rb) that set settings on activerecord.

Fred