1.Rubymine new Ror Project
File->new Project
??
Select "New Application" under R ails
??
Click OK after build Ror project
??
??
2. Add Controller
After you create a new project , right-click new on the project name
??
Fill in COntroller's name, click OK
??
Build after C Ontroller, the following four files are automatically added to the folder in the app directory and opened directly in the editor, the first most common
??
3. Add a program
in the first file above to customize a process, named ' B ' ( note and COntroller's name ' a ' different!!! )
??
??
in the app view directory in the same folder as the Controller name (here I was a), a new HTML file with the same name on the process, and enter the content
??
??
??
4. start the Web server and go to the browser to view the results
(Note that the change does not require a restart, the direct refresh of the browser result has changed, this is the power of R Uby, interpreted by the execution of the program)
??
The results of the operation are as follows:
Attention
1. After HTTP://localhost:3000 followed by controller name and procedure name in order to access the normal
2. The procedure name must be consistent with the Html file name, which is the Ror rule
Latest RubyMine2016.2 development of Ruby on Rails (ROR) program