MVC Gems
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

MVC Gems

on

  • 685 views

 

Statistics

Views

Total Views
685
Views on SlideShare
682
Embed Views
3

Actions

Likes
2
Downloads
5
Comments
0

2 Embeds 3

http://dandan.nonobo.com 2
http://www.hanrss.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

MVC Gems Presentation Transcript

  • 1. MVC Gems Kirill Shatrov, Evrone.com Feb 2012, Helsinki
  • 2. Kirill Shatrovshatrov@me.com / @kiiir
  • 3. resque web interfacetolk Spree Deviserails_admin active_admin
  • 4. Inboxes• DRY each time• Private and group messaging ability for Rails 3 app• Pub/sub engine (live chat!)• Read/unread flags http://github.com/evrone/inboxes
  • 5. Polemic• DRY each time again :)• Comments for any AR object• Pub/sub (realtime comments, coming soon) http://github.com/evrone/polemic
  • 6. Requirements• Rails >= 3.1 (Asset Pipeline)• Devise• CanCan• Faye for pub/sub (optional)
  • 7. ::Rails::Engine• its own models, controllers, views• its own middleware stack (3.1+)• routes (3.1+)• locales• config/environment.rb (3.1+)• application config
  • 8. What’s inside?
  • 9. What’s inside?MVC + helpers + routes
  • 10. What’s inside?
  • 11. Problems?• Tests over dummy app• Hard to test features that interact with Rails• Hard to be flexible• Troubles with controllers from Rails Engine
  • 12. Engine controllers?
  • 13. Engine controllers?
  • 14. Tools• Bundler• bundle gem foo & rake release (no Jeweler!)
  • 15. Travis CI +=
  • 16. Hints• Look inside source of other similar gems• Be friendly with tests, at least models• Review Readme after each release and write wikis/tutorials
  • 17. Open sourcewill save the world
  • 18. Thank you!