Where is scaffold in RubyMine - ruby

I'm trying RubyMine, and watching this tutorial https://www.jetbrains.com/ruby/documentation/ . The author uses there project->new->scaffold but i could not find scaffold there. What's wrong?

Whenever searching for something in RubyMine, a highliy recommented thing is "Search"->"Find Action" (Cmd-Shift-A).
Just type "scaffold" in the search field and it shows the relevant IDE actions.

Click on File -> New -> Run Rails Generator...
type scaffold and press enter
in the next dialog you can enter the scaffold parameters

With RubyMine, I often find it easier to use the terminal for Rails commands like generating scaffolds and migrations and use the RubyMine interface for watching what's happening in the server console, raking the database or routes, etc. It's sort of the best of both worlds. Good luck.

Related

RubyMine 2018.1.3 - Not able to configure Ruby Interpreter in Mac OS X 10.13.4

RubyMine shows me an error regarding Ruby Interpreter like below
Now whenever I click on Configure Ruby Interpreter it takes me to the below page and even after selecting the interpreter and pressing Apply , the interpreter is not getting configured.
The same issue with Configure Cookbooks. When I try to configure Cookbooks it shows me an window like below and even after doing apply nothing happens.
Can some one let me know what is going wrong ?
I am not sure whether I have faced the same problem, but for me when I press apply button, it got stuck so I directly pressed the okay button, it has configured the interpreter fine. Try it.
This is literally just a case of the message not going away, same thing happens in PyCharm as well. Closing the tab the message is displayed on and re-opening it will make it go away, as well as simply clicking the "play" button to confirm it is indeed working.
The project I was working on has both python and ruby files. I have configured PyCharm and then in the same directory I was trying to configure RubyMine for ruby which was causing the issue.
So I checked out the code in a different folder and configured only RubyMine there. Now things are working as expected.

Xcode Documentation Generator

I've looked at Headerdoc and Doxygen for documenting source code, but they both seem to need the developer to do most of the leg-work first. In Visual Studio, typing \\\ generates the skeleton for documentation including the parameters expected by a method. There's also Ghostdoc which guesses what the method does based on its name and parameters. Is there anything similar for Xcode?
There is also Appledoc, which creates a variety of documentation from comments in your source, docsets, html that looks just like the Apple docs.
You can use VVDocumenter plugin, it's a very handy plugin for XCode documentation.
After that you can find the method (or any code) you want to document to, and type in ///, the document will be generated for you and all params and return will be extracted into a Javadoc style, which is compatible with Appledoc, Doxygen and HeaderDoc. You can just fill the inline placeholder tokens to finish your document.
Download the XCode package manager: Alcatraz which can be done easily with the following command:
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
Restart XCode and you will find a new option in the Window toolbar menu labed 'Package Manager'. You can then install VVDocumenter from there.
Once you install VVDocumenter you'll need to restart XCode again, but after you reload Xcode you can then type /// to get help writing comments which will later be used to write your documentation.

PhpStorm configuration for automatic creation of the class namespace use statement like in ZendStudio

I like ZendStudio feature when after typing class name and pressing "Enter" it automatically adds namespace use statement into the head of the script file.
Is it possible to do the same in the PhpStorm IDE?
Not sure if this has been there all the time, or if it a new addition but it can be done already.
On my case, you get on top of the class that you want the use imported and you press alt+Enter. A popup allowing you to select which namespace you want to import pops up.
You can see a more graphical explanation here:
PHP Storm Tricks: Add your USE Statements Automatically!
I just wanted to disable it (it's native and enabled by default now) and found this SO thread.
For people like me, here's where the setting:
Editor > Auto-import > PHP - Enable auto-import in namespace scope
Please vote http://youtrack.jetbrains.net/issue/WI-1362
In PHPStorm 6.0.3 on Mac (and presumably other platforms) you should follow the advice given by #Savageman. It worked for me.
Go to "Settings" (Ctrl+Alt+S) > "Code Style > PHP" (I'm assuming you're using PS 3.0)

how to create custom installer for window application in .net

I want to create setup for my window application in .net,in which i want to asked user to input custom connection string at time of installation.how can I do it.
after digging in the matter. I have created set up project for this. now i stuck up in it.
how to move further.
any tutorial on it.
If you are using Visual Studio setup project, you can try creating a custom dialog through which you get the connection information. Perhaps this tutorial will help:
http://www.codeproject.com/KB/install/vsSetupCustomDialogs.aspx
If you are using another tool, mention it in your post and I will edit my answer with some suggestions.

Is there a way to see the current log file in RubyMine?

I think it would be great to be able to see log/development.log and maybe log/test.log in the same way you see the output of a running task or tests in RubyMine. Is it possible?
You can add it in Run Configurations | Logs:
Actually it's added automatically but the title (Server Log) is a little bit confusing. We'll fix it the future version
If you're looking for the test log specifically, edit the configuration for the appropriate test or spec under Rake on the left side of the Edit Configurations dialog. Then go to the Logs tab and click the plus button under the empty listing. Locate the log file log/test.log and call it "Test Log".

Resources