Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sesion II - Taller RoR LCC

Sesion II - Taller RoR LCC

2nd session of the USACH's Computer Science degree workshop on RoR

Transcript

  1. DESARROLLO DE APLICACIONES WEB CON RUBY ON RAILS TALLER ROR

    LCC ’17 - V1.0
  2. SOBRE MI @juanpintoduran cabargas.com gitlab.com/cabargas •Desarrollador de Software (2009*-) •Usuario

    de RoR (2010-) •Estudiante LCC (2015**-) *empece profesionalmente el 2009 - **tristemente, no empece academicamente el 2015
  3. PARADIGMA MVC

  4. MVC Views Controllers Models Router Browser server client request respuesta

    DB
  5. RAILS

  6. TALLER ROR LCC ’17 - V1.0 REQUERIMIENTOS ▸ Rails >=

    5.0 ▸ Ruby >= 2.2 ▸ Git ▸ Cuenta en github.com / gitlab.com ▸ Ganas (?)
  7. NUESTRA PRIMERA APP

  8. rails new blog

  9. bin/rails generate rails g bin/rails server rails s bin/rails console

    rails c bin/rake db:create db:migrate rails db:create db:migrate
  10. vi Gemfile

  11. gem ‘devise’

  12. rails g devise:install

  13. rails g devise Author

  14. rails db:create rails db:migrate

  15. rails g scaffold Post author:references title:string content:string

  16. rails db:migrate