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

Rails Maintainance Headaches

Rails Maintainance Headaches

Avatar for pete higgins

pete higgins

July 03, 2013
Tweet

More Decks by pete higgins

Other Decks in Programming

Transcript

  1. Me

  2. Me

  3. What this isn't * An excuse to bash Rails *

    Performance optimization * Comprehensive
  4. What this isn't * An excuse to bash Rails *

    Performance optimization * A comprehensive list
  5. Comprehensive * I am not a ZOMG Expert * “Do

    these things and your code is fixed”
  6. Resources resource :profile, only: [:edit, :update] do member do get

    'photo' => 'profile#edit_photo' post 'photo' => 'profile#update_photo' get 'crop_photo' end end
  7. Use Ruby * What you call it isn't important. *

    Not everything has to be a controller, model, helper or view.
  8. Avoid @ivars def page @page ||= params[:page] || 1 end

    private :page helper_method :page
  9. Avoid @ivars def page @page ||= params[:page] || 1 end

    private :page helper_method :page * rubygems.org/gems/ decent_exposure