开发者

Rails in depth plugin tutorial

I want to learn rails plugins, in a very detailed way so I can understand how the rails plugins at github are designed.

I'm looking for something that goes开发者_如何学编程 over things at a high level, but then goes detailed.

plugins, generators, etc.

does this exist?


I think what you are really looking for is deep understanding of Ruby Object Model and Ruby Metaprogramming. Crystal clear understanding of both of them is critical to be able to build variety of useful rails plugins. I would not recommend diving head first into rails plugin development without these two.

Unfortunately, I don't have many resources that would give you deep insights in them but here is something to get you started.

http://www.hokstad.com/ruby-object-model.html

http://www.ruby-doc.org/docs/Understanding%20Ruby%27s%20Object%20Model/ChrisPine_UROM.ppt

http://www.rubyfleebie.com/3-steps-to-understand-how-classes-and-objects-work-in-ruby/

Also, I highly recommend this book - Ruby Metaprogramming by Dave Thomas and also careful reading of The Ruby Way.

Once you are thorough with the object model and metaprogramming, understanding the design of rails becomes easier and with experience, it starts to come naturally. Extending the same with plugins and gems would whole lot easier as well.


I would recommend you to read http://guides.rubyonrails.org/plugins.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜