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

extend rails application by rails engine

tsechingho
December 08, 2012

extend rails application by rails engine

tsechingho

December 08, 2012
Tweet

More Decks by tsechingho

Other Decks in Programming

Transcript

  1. extend
    rails application
    by rails engine
    Tse-Ching Ho 何澤清
    2012-12-08 rubyconf.tw lightening talk

    View full-size slide

  2. bundle gem
    bundle gem simple-pages-rails

    View full-size slide

  3. rails plugin
    rails plugin new simple-pages-rails --
    mountable -d mysql -T --dummy-path=spec/
    dummy

    View full-size slide

  4. rails template
    rails new -m ~/codes/pages_template.rb
    thor
    http://rdoc.info/github/wycats/thor

    View full-size slide

  5. Rails app builder
    rails new -b ~/codes/pages_builder.rb
    thor
    http://rdoc.info/github/wycats/thor
    Rails::AppBuilder
    http://api.rubyonrails.org/classes/Rails/AppBuilder.html

    View full-size slide

  6. something different

    View full-size slide

  7. rails assets gem
    chosen-rails
    https://github.com/tsechingho/chosen-rails
    ckeditor-rails
    https://github.com/tsechingho/ckeditor-rails
    icomoon-rails
    https://github.com/tsechingho/icomoon-rails

    View full-size slide

  8. bootstrap
    http://twitter.github.com/bootstrap/
    Do we still need to design all things by self?

    View full-size slide

  9. rails themes gem
    copyright!
    be public?
    require front-end & back-end themes
    not only css & javascript

    View full-size slide

  10. rails themes gem
    Buy a designed theme
    http://themeforest.net/browse/tags/default/bootstrap
    Create a PRIVATE themes gem
    Add to your gem file
    Customize application

    View full-size slide

  11. rails themes gem
    rails-theme-helper
    https://github.com/tsechingho/rails-theme-helper
    simple-pages-rails
    https://github.com/tsechingho/simple-pages-rails
    we need more!

    View full-size slide

  12. something fun

    View full-size slide

  13. rails archer
    rails new theme_demo --themes ~/codes/
    themes.yml
    rails-archer
    shoot new birds --with ~/codes/bows.yml
    https://github.com/tsechingho/rails-archer
    soon!

    View full-size slide

  14. rails xxx gem
    any subsystems since beginning stage
    monitor packages
    analysis packages
    map packages
    EC packages

    View full-size slide