Useful Rails Concepts May 20, 2013 1 Yet another list Rails - - PowerPoint PPT Presentation

useful rails concepts
SMART_READER_LITE
LIVE PREVIEW

Useful Rails Concepts May 20, 2013 1 Yet another list Rails - - PowerPoint PPT Presentation

Useful Rails Concepts May 20, 2013 1 Yet another list Rails API, active_model_serializers, JSON API, Ember.Data, token access Rails 2, Rails 3, Rails 4 RubyMine Rails Admin, Active Admin kaminari, paging gem


slide-1
SLIDE 1

Useful Rails Concepts

May 20, 2013

1

slide-2
SLIDE 2

Yet another list

  • Rails API, active_model_serializers, JSON API, Ember.Data, token access
  • Rails 2, Rails 3, Rails 4
  • RubyMine
  • Rails Admin, Active Admin
  • kaminari, paging gem
  • netzke/ ExtJS
  • jQuery, Ajax js workflow
  • Ember.js (blogr ordr), Angular.js (my app, angular scaffold)
  • Authorization, Authentication, Sorcery, CanCan, OAuth2
  • Search - Solr/Sunspot, ElasticSearch/ Tire
  • Arel, finders, scopes (DevMynd article), SQL
  • Rake - pulling in data, CSV gem, Excel, PDF, prawn
  • REST, routes, nested forms
  • strong params
  • many-to-one, many-to-many, through, polymorphic, STI, acts_as_tree, awesome_set etc.
  • Key-value storage, serializers, EAV tables, text blobs
  • Postgres hstore,
  • callbacks, validations, client-side validations
  • i18n
  • helpers, form helpers, simple form
  • Git setup, server setup
  • Ruby Metaprogramming
  • testing
  • Geo lookup
  • active_merchant, active_shipping, payment gateways, inventory
  • jruby rvm

2

slide-3
SLIDE 3

Rails API

  • Rails API
  • Active Model Serializers
  • API access, tokens
  • Strong params, whitelisting

3

slide-4
SLIDE 4

SPA

  • Standard jQuery, Ajax
  • Ember.js
  • Angular.js

4

slide-5
SLIDE 5

Authentication/ Authorization

  • Sorcery, Devise
  • CanCan

5

slide-6
SLIDE 6

Search

  • Solr/ Sunspot
  • ElasticSearch/ Tire

6

slide-7
SLIDE 7

AR Finders

  • where, offset, limit etc. (chaining) see Rails

Guides

  • Arel
  • search scopes (DevMynd article)

7

slide-8
SLIDE 8

console

  • console
  • pry

8

slide-9
SLIDE 9

Tooling

  • RVM
  • REE, Ruby 1.9, 2.0, jRuby
  • RubyMine
  • Git
  • Passenger

9

slide-10
SLIDE 10

AR Associations

  • has_many, belongs_to, has_many :through
  • acts_as_tree
  • awesome_nested_set (nested set)
  • polymorphic associations
  • many_to_many with behaviour
  • STI
  • see ‘Rails Recipes’ book, or ‘Rails

Cookbook’

10

slide-11
SLIDE 11

DB document storage/ flex data

  • Postgres Hstore - see DevMynd article
  • serializers
  • EAV tables (‘Eavil table’)
  • data blob (‘e-blob’)
  • see doc ‘Postgres Experts’

11

slide-12
SLIDE 12

Routes

  • Routes
  • Route nesting
  • see Guides, rake routes
  • Blog example

12

slide-13
SLIDE 13

Validations/ Callbacks

  • Validations, client_side_validations
  • Callbacks

13

slide-14
SLIDE 14

Helpers

  • Form Helpers
  • Simple Form/ Formtastic

14

slide-15
SLIDE 15

Papertrail

  • Audit Log

15

slide-16
SLIDE 16

Data

  • Rake data import
  • CSV
  • Excel
  • PDF export, Prawn

16

slide-17
SLIDE 17

Assets/ CSS

  • Asset Pipeline
  • Bootstrap
  • SASS, Less

17

slide-18
SLIDE 18

i18n

  • i18n
  • see validations example (cartag)

18

slide-19
SLIDE 19

Admins

  • Netzke.org / ExtJS
  • Rails Admin
  • Active Admin

19

slide-20
SLIDE 20

Geo

  • Geo Libraries
  • Google Maps

20

slide-21
SLIDE 21

Commerce

  • ActiveMerchant
  • ActiveShipping

21

slide-22
SLIDE 22

iOS

  • RubyMotion www.rubymotion.com

22

slide-23
SLIDE 23

Thank You.

23