Hye, i come across a big problem for me today. I use active_record 4.2.8 version, and I need to add gem `composite_primary_keys`, '8.1.6' in my rails app
to use composie primary keys in one of my modle. But the problem is that anthor modle's function trigger the function `delete_all`, which trigger the function
`subquery_for` at last. The problem is that, it's fine to use this function when only active_record works, but now when `composite_primary_keys` is added,
then function `subquery_for` called will go to the code which defined in `composite_primary_keys` rather than active_record before!
How can I solve this problem? And any tips to use gems in smallest auth in my code, such as just load that gem `composite_primary_keys` in needed modle file
instead of whole rails app?
Any response is really really high preciated! Thank you very much! Good night!
···
------------------
顺送时祺!
From: Leon Deng
------------------ 原始邮件 ------------------
发件人: "Ivan Pevtsov";<ivan.pevtsov@gmail.com>;
发送时间: 2017年12月21日(星期四) 晚上8:08
收件人: "Ruby users"<ruby-talk@ruby-lang.org>;
主题: Re: VS Code for Ruby – Experience?!
Hey Michael
I have been using VSCode for like a half year. I can say it's quite not bad wrt its a microsoft tool, but am primarily using it as a text editor + file management.
Pros.
Code Lintering and formatting
File management
Git integration
VSCode well understands all other programming languages, so in multi-language project it's very usefull and easy to use. Am using it as well for Python and JS coding.
Quite lightweight and fast in comparison with RubyMine, Aptana or Eclipse.
Cons:
Debugging can be sometimes very slow and wonky, so I don't use VSCode neither for code run nor for debugging. First of all it's not that simple to stop the running app there. There is no direct button to do so - only hot keys. And sometimes it just doesn't work - the ruby app will just hang unless you manually kill the process.
For debugging, trying to see a variable with a long list of values may work very slow, much slower than from the command line.
Hope that helps
Regards,
Ivan
On 21 December 2017 at 11:27, Michael Schwarze <michael@schwarze-web.de> wrote:
Hi,
Has anybody experience using Visual Studio Code for Ruby?
I haven’t got a special problem and I dont’t want to start another IDE war, but I’m looking for some real life experience with this IDE and Ruby; is somebody using VS Code for developing Ruby applications? Any pros/cons re. this setup? Something a starter with this setup should now about?
I’m on Mac using the latest Ruby and VS Code installations with the »standard« Ruby extension rebornix.Ruby and necessary dependecies like ruby-debug-ide, debase installed.
Many thanks!
Regards,
Michael
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>