| layout | title | date | comments | categories |
|---|---|---|---|---|
post |
Uninstall all gems and rerun bundler. |
2012-01-30 22:54 |
true |
A step-by-step:
| " Solarized | |
| " | |
| syntax enable | |
| if has('gui_running') | |
| set background=light | |
| else | |
| set background=dark | |
| endif | |
| set t_Co=16 | |
| let g:solarized_termcolors=16 |
| PopPi::Application.routes.draw do | |
| root :to => "pages#home" | |
| match "/services" => "pages#services" | |
| match "/statistics" => "pages#statistics" | |
| match "/posts" => "pages#posts" |
| layout | title | date | comments | categories |
|---|---|---|---|---|
post |
Uninstall all gems and rerun bundler. |
2012-01-30 22:54 |
true |
A step-by-step:
| class ProjectsController < ApplicationController | |
| before_filter :authenticate_user! | |
| respond_to :html | |
| def index | |
| @projects = Project.all | |
| end | |
| def show | |
| @project = Project.find(params[:id]) |
| 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 |
| 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 |
| logica: | |
| Um usuario deve deve criar um _project_ | |
| Um o _project_ deve ter várias _tasks_ | |
| Model: | |
| Project :name :description :status | |
| Task :name :user | |
| User :details device |
| layout | title | date | comments | categories |
|---|---|---|---|---|
post |
Uninstall all gems and rerun bundler. |
2012-01-30 22:54 |
true |
A step-by-step:
| require "bundler/capistrano" | |
| set :application, '(1)'#Name | |
| set :user, '(2)' #User | |
| set :use_sudo, false | |
| set :repository, '(3)' #Repositorio | |
| set :deploy_to, "/home/#{user}/www/#{application}" | |
| set :deploy_via, (4) #:remote_cache or :copy | |
| set :scm, :git | |
| set :branch, 'master' |