Rails App with no database?

rails
sqlite
ruby

#1

If I wanted to make an app with no sql database backend, to use just the View and Controller (skipping Model), can Cloud9 do that? No need to store data for the app, but run/print/etc from the webpage itself.

How so?


#2

Sure, this is a Rails matter rather than a C9 matter.

If you created a Rails workspace, try uncommenting this line in environment.rb:

config.frameworks -= [ :active_record, :active_resource, :action_mailer]

If you are using a blank custom workspace, you can generate a new Rails application with special parameter that tells Rails to not use ActiveRecord:

rails new myApp -O

Source: