Translate

Friday, January 3, 2014

Creating a Blog application in Rails 3.2 (video tutorial)

          Would you like to learn how to create a simple application using Ruby on Rails? Ruby on Rails is becoming very popular because sites can be developed quickly, often in half the time the other technologies require.

This is one of the coolest video tutorials that demonstrates power of RoR, and shows how to make a Blog.

In the video below, you'll learn how to create a simple blog application with Ruby on Rails.

 A screencast by John Ash, Senior Developer at K3 Integrations.


          Sample app

      - Goal : Setup a simple  blogging system for multuple authors
      - Users can login to manage their posts
      - Posts can belong to more than one category
      - Posts can be entered early but only show up on the publish date
      - Hompage - show all posts
      - Each post's categories link to a page showing only posts in that category
      - User's page - shows posts only from that user

          Model
      User
        - name, string
        - email, string
        - Association: has_many: posts
   
      Post
        - title, string
        - body, text
        - publish_date, date
        - Association: belongs to :user
        - Association: has_and_belongs_to_many :categories

      Category
        - name, string
        - Association:  has_and_belongs_to_many :posts


          Create the Rails application
 For this you will be using one of the options of Rails Composer. Generate an app in minutes using an application template. The link for this app in video tutorial is bit old, I advise to get more infos and intros of Rails Composer and look for same or similar what is needed.


No comments:

Post a Comment