Skip to content

Instantly share code, notes, and snippets.

@mariochavez
Created January 8, 2011 03:02
Show Gist options
  • Save mariochavez/770496 to your computer and use it in GitHub Desktop.
Save mariochavez/770496 to your computer and use it in GitHub Desktop.
Curso de Rails
rails new demo
rails g scaffold evento name:string date:datetime
# Configuracion de Rspec y Steak
rails g rspec:install
rails g steak:install
rails generate steak:spec publicar_nuevas_ofertas_de_empleo
# Ejecutar pruebas
bundle exec rspec -f doc spec/
rails generate simple_form:install
rails g controller dashboard index
rails g controller jobs new
rails g model job title:string category:integer location:string \
description:text contact:text email:string company_name:string\
url:string
Para poder llenar una posicion de trabajo
Como empresa interesada
Debo poder poder publicar una oferta
rake db:migrate
rake environment RAILS_ENV=test db:migrate
rails g migration agregar_columna_de_published_a_job
r g mailer job_mailer published
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment