pry gem和pry-rails gem有什么区别(明智的做法)?pry和pry-rails之间的差异
回答
比较它们的实现是没有意义的,因为它们是两个不同的东西:一个IRb替代品和一个使前者成为Rails控制台的插件。
撬轨宝石只需adds an initializer将Rails控制台更改为Pry和adds some Pry commands特定于Rails。 Pry-Rails取决于Pry,没有理由不能在没有撬轨的情况下使用Pry和Rails,它只是让它更容易。
如何使用pry-rails来调试Rails应用程序? – 2012-12-19 12:38:31
的意思是,可以撬任何撬轨可以做的事情吗? – 2015-12-27 16:09:27
@huzefabiyawarwala是的。 – DiegoSalazar 2016-09-15 15:38:49
- 1. /和/ **之间的差异
- 2. PHP之间的差异()和[]
- 3. '//'和'///'之间的C++差异
- 4. VBA:&和+之间的差异
- 5. 之间的差异和::: ++
- 6. 运算符“==”和“=”之间的差异运算符“==”和“=”之间的差异“==”和“=”
- 7. PHP:差异之间 - >和::
- 8. Htaccess - 和*之间的差异:。*和。+
- 9. 总和和+之间的差异?
- 10. Url.Action和Html.RenderActionLink和Html.RenderAction之间的差异
- 11. Serilog:之间{..} {差异@ ..}
- 12. Elf32_Phdr的p_filesz和p_memsz之间的差异
- 13. Go和Cython之间的差异
- 14. vcruntime140d_app.dll和vcruntime140d.dll之间的差异
- 15. RestKit和AFIncrementalStore之间的差异
- 16. htop和golang之间的差异readmemstats
- 17. platformwebservices和ycommercewebservices之间的差异
- 18. spawn/1和spawn/3之间的差异
- 19. TTL和Keep alive之间的差异
- 20. strstream和stringstream之间的差异
- 21. JAVA和C#之间的LdapConnection差异
- 22. c#和java之间的差异写()
- 23. OpenShift和Kubernetes之间的差异
- 24. appengine_django BaseModel和db.Model之间的差异
- 25. Formsauthentication.SetAuthCookie和Session之间的差异用法
- 26. 有self.current_user和@current_user之间的差异?
- 27. cabal包之间的差异readPackageDescription和parsePackageDescription
- 28. SmsStatusCallback和StatusCallback之间的Twilio差异
- 29. ipython和python之间的输出差异
- 30. Redux中`Provider`和`connect`之间的差异
通常,-rails gems提供了与rails集成的额外功能,所以如果使用rails,通常使用这些。 – bento 2012-07-29 14:09:04