| layout | title | date | comments | categories | 
|---|---|---|---|---|
| post | Uninstall all gems and rerun bundler. | 2012-01-30 22:54 | true | 
A step-by-step:
| Lógica: | |
| Um _user_ deve ter vários _project_ e _tasks_ | |
| Um o _project_ deve ter várias _list_ | |
| Uma list deve ter várias _tasks_ | |
| USER has_many TASKS | |
| USER has_many LISTS | |
| TASK belongs_to USER | 
| layout | title | date | comments | categories | 
|---|---|---|---|---|
| post | Uninstall all gems and rerun bundler. | 2012-01-30 22:54 | true | 
A step-by-step:
| ToDoList::Application.routes.draw do | |
| devise_for :users | |
| root :to => 'projects#index' | |
| resources :projects do | |
| get 'closed_task',:on => :collection | |
| resources :lists | |
| resources :tasks | |
| end | 
| class ProjectsController < ApplicationController | |
| before_filter :authenticate_user! | |
| respond_to :html | |
| def index | |
| @projects = Project.all | |
| end | |
| def show | |
| @project = Project.find(params[:id]) | 
| layout | title | date | comments | categories | 
|---|---|---|---|---|
| post | Uninstall all gems and rerun bundler. | 2012-01-30 22:54 | true | 
A step-by-step:
| PopPi::Application.routes.draw do | |
| root :to => "pages#home" | |
| match "/services" => "pages#services" | |
| match "/statistics" => "pages#statistics" | |
| match "/posts" => "pages#posts" | 
| " Solarized | |
| " | |
| syntax enable | |
| if has('gui_running') | |
| set background=light | |
| else | |
| set background=dark | |
| endif | |
| set t_Co=16 | |
| let g:solarized_termcolors=16 |