WorkshopCamp Mexico 09 - Uniendo los puntos con Ruby on Rails

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    WorkshopCamp Mexico 09 - Uniendo los puntos con Ruby on Rails - Presentation Transcript

    1. Uniendo los puntos en Ruby On Rails Rubén Medellín @chubas WorkshopCamp México 25 – 10 – 09 Bajo licencia Creative Commons Attribution-Non-Commercial-Share Alike 2.5
    2. ABSTRACCIONES
    3. Abstraccion es Component es esenciales de las cosas
    4. Modelo web tradicional
    5. La MAGIA de Rails
    6. NO HAY MAGIA Entender muy bien los componentes de Rails
    7. ¿Qué es Rails? “Ruby on Rails is a breakthrough in lowering the barriers of entry to programming. Powerful web applications that formerly might have taken weeks or months to develop can be produced in a matter of days.” Tim O'Reilly, fundador de O'Reilly Media
    8. Una que me gusta más “Ruby on Rails is astounding. Using it is like watching a kung- fu movie, where a dozen bad-ass frameworks prepare to beat up the little newcomer only to be handed their asses in a variety of imaginative ways.” Nathan Torkington, O'Reilly Program Chair for OSCON
    9. Mi propia definición Rails es una plataforma de desarrollo cuyo principal objectivo es eliminar la complejidad innecesaria, haciendo el proceso más ágil y al desarrollador más feliz
    10. La “magia” de Ruby on Rails está en sus principios: • Convention over configuration • Complex framework, simple logic • Test, then code • Don't repeat yourself • Don't reinvent the wheel • entre otros
    11. MVC en Rails ActiveRecord + ActionController + ActionView
    12. ActiveRecord ORM – Object Relational Mapper Database agnostic
    13. Modelos CRUD • save, save! • new, create, create! • delete • find, find_by_*
    14. Modelos Relación entre entidades • has_many • belongs_to • has_and_belongs_to_many
    15. Modelos Validación y procesamiento  Validaciones  Callbacks / Observadores
    16. ActionController Procesamiento y resolución de peticiones
    17. Controladores Recibe peticiones Accede a los modelos Prepara una respuesta (generalmente una vista)
    18. Rutas En base a regexps + opciones url_for / rutas nombradas REST
    19. Controladores Se dividen en acciones Fat models, thin controllers
    20. Controladores Tienen acceso al objeto request y sus atributos Headers, cookies, sesión, parámetros (GET o POST), response Filtros y wrappers Se encargan de preparar la respuesta
    21. Respuesta Por convención, rails regresará una vista con el nombre de la acción Se puede regresar otra vista, datos (archivos, streams), redirecciones, errores, AJAX
    22. ActionView •Sistema de templates •Accede a las variables y datos pasados por el controlador •La menor lógica posible en las vistas
    23. Pero eso no es todo... La arquitectura Rails es altamente escalable • PLUGINS / GEMAS
    24. Plugins para: •OpenID •Autenticación •Control de acceso •Roles •Paginación •APIs externas •(Twitter, Youtube, flickr, google maps) •Búsqueda (sphinx, ferret) •Vistas •Formas •CSS
    25. Taller práctico
    SlideShare Zeitgeist 2009

    + Edgar SuarezEdgar Suarez Nominate

    custom

    50 views, 0 favs, 0 embeds more stats

    Presentación de Ruben Medellín en el WorkshopCamp more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 50
      • 50 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories