Category: RoR

  • Refinery CMS

    Refinery CMS, often shortened to Refinery, is an open source content management system written in Ruby as a Ruby on Rails web application with jQuery used as the JavaScript library. RefineryCMS supports Rails 3.2.

    Refinery differs from similar products by targeting a non-technical end user and allowing the developer to create a flexible website rapidly by staying as close as possible to the conventions of the Ruby on Rails framework.

    Official Website Link: www.refinerycms.com

    Features

    • Engine architecture
    • WYSIWYG content editing
    • Localisation (currently supports 26 languages
    • Page management
    • Image and File management
    • Contact form and inquiry management
    • Search engine optimization (SEO)

    Installation

    Run following command in terminal.

    $ gem install refinerycms

    It takes time to install.

    Thanks.

  • Configuring the Database in Ruby on Rails

    Configuring a Database

    Just about every Rails application will interact with a database. The database to use is specified in a configuration file, config/database.yml. If you open this file in a new Rails application, you’ll see a default database configured to use SQLite3. The file contains sections for three different environments in which Rails can run by default:

    • The development environment is used on your development/local computer as you interact manually with the application.
    • The test environment is used when running automated tests.
    • The production environment is used when you deploy your application for the world to use.

    1) Configuring an SQLite3 Database

    Rails comes with built-in support for SQLite3, which is a lightweight serverless database application. While a busy production environment may overload SQLite, it works well for development and testing. Rails defaults to using an SQLite database when creating a new project, but you can always change it later.

    Here’s the section of the default configuration file (config/database.yml) with connection information for the development environment:

      development:
      adapter: sqlite3
      database: db/development.sqlite3
      pool: 5
      timeout: 5000

    In this guide we are using an SQLite3 database for data storage, because it is a zero configuration database that just works. Rails also supports MySQL and PostgreSQL “out of the box”, and has plugins for many database systems. If you are using a database in a production environment Rails most likely has an adapter for it.

    2) Configuring a MySQL Database

    If you choose to use MySQL instead of the shipped SQLite3 database, yourconfig/database.yml will look a little different. Here’s the development section:

      development:
      adapter: mysql
      encoding: utf8
      database: new_development
      pool: 5
      username: root
      password:
      socket: /tmp/mysql.sock

    If your development computer’s MySQL installation includes a root user with an empty password, this configuration should work for you. Otherwise, change the username and password in the development section as appropriate and you can also do these changes in test and production sections too.

    3) Configuring a PostgreSQL Database

    If you choose to use PostgreSQL, your config/database.yml will be customized to use PostgreSQL databases:

      development:
      adapter: postgresql
      encoding: unicode
      database: new_development
      pool: 5
      username: blog
      password:

    You can also do these changes in test and production sections.

    Change the username and password in the development section as appropriate.

    Creating the Database

    Now that you have your database configured, it’s time to have Rails create an empty database for you. You can do this by running a rake command:

    $ rake db:create

    This will create your development and test  databases inside the db/ folder

  • Fedena, An Opensource (And Free) School Management System

    School management software systems in India are archaic (just the way our education system is) and most of these software are developed by fly-by-night operators who really do a crappy job of building such a software (and charge a bomb to schools).

    At the core, schools need to really adapt latest software which can help them improve productivity (many big schools in Bangalore still store student data in Microsoft excel).

    Fedena is set to change the scene with its open source school management software, developed on RoR framework. Developed by Bangalore based Foradian Technologies, Fedena can be used as:

    • Student Information System (SIS)
    • School Management software
    • School ERP
    • Campus Management software
    • Student records system
    • Student management system
    • School software
    • E-learning system

    Fedena Admin Screen

    Fig : Dashboard of Fedena Admin

    Benefits to schools:

    • Available in chosen language.[Ex: Kannada, Tamil, Spansh]
    • Easy tracking of students and Employees
    • Easy way for TC generation and Transfer of Batch
    • Time table generation and Examination creation
    • Analyzing student’s performance and attendance
    • Various student and staff reports [based on different category, religion, blood group, caste, DOB and many other filters]
    • Easy Attendance Marking and Attendance reports
    • All the historical records of a student available easily
    • Helps in sending data to UID project
    • As the entire data is online and secure, any analysis can be done at any desired point of time.