Adding Rubymine features to Jetbrains - ruby-on-rails

Forgive me as I am new to the ruby environment, in fact I do most my developing in other languages. As such I would love to use intellij as I understand it can do everything all of it's sibling IDE's can. That be said I have looked through the plugins and can't seem to find anything that is related to Ruby/Rubymine. Can someone please tell me which modules I need to enable and where I might find those so I can spin up a ruby project?
Thank you in advance.

To use Ruby plugin functionality in Intellij you need to install this plugin:
http://plugins.jetbrains.com/plugin/?id=1293.
The differences between RubyMine and Ruby plugin are listed here
http://devnet.jetbrains.com/docs/DOC-1146
Key point is
The Ruby plugin for IntelliJ IDEA is built from the same codebase as RubyMine. Some features may be temporary not available in the plugin because the latest available IntelliJ IDEA bases on an earlier IntelliJ platform compared to RubyMine.

Related

Installing Ruby version 2.2.3 on windows - get config.yml

I am completely new to programming and am trying to install Ruby on Windows (64 bit). I get to the config.yml message and cannot set up a command to get past this to full set up.
I have been doing research online and find many people say ruby and Windows are not compatible.
Can anyone help advise/send a link that is a good workaround?
Thanks,
You can install Ruby on Windows. Probably the easiest way to get started with Ruby on Windows is to use Ruby Installer. They support up to Ruby 2.2.3 at the moment.
If you are looking for an alternative workflow, you might consider running a Vagrant machine on Windows. This workflow is described here.
The workflow involves using your native environment to launch a virtual machine that more closely matches the one typically used to deploy your code. You get the benefits of the windowing system tools (Sublime Text, RubyMine, Notepad++, etc) with the benefits of running specs and code in an environment closer to a production environment.
You can run Ruby on Windows, if you have the correct dependencies/libraries installed.
The best way to do this (if new) is to download a pre-compiled version of Ruby, from RubyInstaller:
EXE installer
ZIP file
Choose one of the above; they provide you the ability to put the Ruby.exe executable on your system, which (if installing with ZIP), needs to be added to your system PATH var.
--
I can explain more if required. If you want specific responses, you need to provide specific points (IE the full error message for config.yml etc)

IDE for rails which works very similar to Pycharm

I have recently shifted from rails to pycharm. I have tried Netbeans and Aptana Studio for rails development, but they don't work like python's pycharm. In them features like auto-saving, error marking, etc are missing.
Can you please let me know the best IDE for development on rails.
Thanks
you may be interested in rubymine
You may consider IntelliJ IDEA Ultimate with Ruby and Python plug-ins to get both PyCharm and RubyMine features in a single IDE (plus much more).
Otherwise just go for RubyMine.
IntelliJ IDEA Ultimate contains all the features of WebStorm, PhpStorm, PyCharm and RubyMine products in one (with minor exceptions like opening folders and creating projects directly from the remote servers).
Rubymine, IDE from JetBrains - authors of PyCharm.

How can i run a ruby on rails project on apache server?

I have project, personal blog with ruby on rails 3.
I use linux.
I want to run this project on apache server, not in webbrick.
How can i do this?
It will be very helpful if someone can answer.
Thanks
You can take a look at Passenger*:
http://www.modrails.com/
This is a module for Apache that works like mod_php. It's very easy to setup and you can also use the Ruby Enterprise Edition to use "33% less memory on average":
http://www.rubyenterpriseedition.com/

Ruby on rails Best IDE for Windows

I am working over linux in our office for development over Ruby on Rails but in home i have Windows XP installed. It has different IDE installed for .NET and PHP development. So i don't want to get rid of those stuff also so kindly guide best IDE for Ruby on Rails Develpment over windows with MySQL as Database..
I suggest RubyMine. Good Rails 3 support and provides a nice integration with your project elements and Rails tools.
I'm also currently working on Linux and NetBeans. Netbeans also supports Windows and you can have PHP as well. But unfortunately NetBeans has discontinued their Rails support from version 7.0. So long term, it might be a problem.
Another one is RedCar (http://redcareditor.com/), this is also good.
Also Aptana RadRails (http://www.aptana.com/products/radrails) can also be used (they offer Eclipse plugin also).
And if you are looking for a paid one I would say go for Rubymine (http://www.jetbrains.com/ruby/).
But as the final note. I have setup dual boot in my home laptop and do all the development except (.net) in Linux because you know Linux rocks :D
Have you tried Aptana?
I would propose that you use NetBeans with Ruby support. It is great and easy to use. I am using it.
I tried using Aptana, I just couldn't get it working.
I am using netbeans for ubuntu as well as for windows. you can download it here.

Should I include the binary in a Rails plugin or not?

I'm trying to roll out a little Rails plugin that is basically is just a wrapper to a 7zip archiver.
Should I include the 7zip binaries for windows, mac and linux with it or explain to user that it's a dependency and they need to get it working. I know it's not that difficult to install a 7zip, but what is the best practice in general. The reason I'm asking is cause I've ran so many times into gems that need some sort of dependency that doesn't compile properly or is not available in ready form for the OS in question and then I end up spending have a day hunting down for a binary or a way to compile the program. (Have happened to me both on Mac and Windows, not on Debian so far. )
There are several plugins that have dependancies on platform specific libraries. Maybe looking at how they are packaged as a gem will help. T name a few: mysql, mongo, ruby-libxml, etc

Resources