Showing posts from May, 2015

Rails 4 WITH NO Database

Sometimes , you may want to create a Rails app lication without ActiveRecord or a database. There might be situations like, Your application only store data using third party APIs, or storing in to files or might not have any persistent data at all. Since Rails stands for the common case (database backed app lication ), by default it fails to start the server without a database connection. You can simply build a Rails app without a database: Comment / Remove any database gems ( mysql, mysql2, sqlite, pg, mongoid, etc..) from your Gemfile and then run bundle.    Open your application.rb. By default, in Rails 4.0 you can see one line which requires all of Rails: require 'rails/all' This includes ActiveRecord also, and requires a database connection. Instead, you can include the specific parts of Rails that you gonna use. See below: require 'action_controller/railtie' require 'action_mailer/railtie' requ

Conference Track Management - Ruby solution

I got to solve this problem as the part of an interview process. It wont look good if I paste the whole code here. So just sharing the link to my gitbub account. Conference Track Management