Rails workshop

Project for Rails Workshop

This project is maintained by Gorav Bhootra

Welcome to Rails Workshop

This repo covers the following topics:
  - Add devise
  - Change the UI
  - Change a route
  - Database migration
  - Add paperclip for uploads

Devise and UI (Bootstrap) - covered under branch devise_ui

This section covers two gems - devise and bootstrap-sass

Routes and Migrations

Routing Concerns


    resources :messages do
      resources :comments
      resources :categories
      resources :tags
    end

    resources :posts do
      resources :comments
      resources :categories
      resources :tags
    end

    resources :items do
      resources :comments
      resources :categories
      resources :tags
    end
    

Instead of above, we can do the following:

concern :sociable do resources :comments resources :categories resources :tags end resources :messages, concerns: sociable resources :posts, concerns: sociable resources :items, concerns: sociable

Authors and Contributors

You can @mention a GitHub username to generate a link to their profile. The resulting <a> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.

Support or Contact

Having trouble with Pages? Check out the documentation at http://help.github.com/pages or contact support@github.com and we’ll help you sort it out.