Ruby on Rails - First start on the Windows

Rails, Ruby, Ruby on Rails, web, Wordpress

Working with Wordpress on hosting provider TimeWeb for almost a year, I start showing greater interest in web development. In particular it is also due to the fact that this is still sufficiently CMS voracious to resources, and also so that they begin to appear on the new ideas projects. And in terms of expanding horizons in the field of programming I would like to try something different, other than Qt/C++ .

Therefore, the choice fell on Ruby on Rails. Here I get something different and distinct from Qt/C++, as well as the opportunity to work in the field of web development for his own pleasure.

Having looked a little documentation, and examples of the first run "Hello world!" In the style of a web service I decided to share what came of it.

Installing Ruby on Rails

The following components will be needed for initial development:

  1. Ruby itself, which must be downloaded from the following link: http://rubyinstaller.org/downloads/
  2. To build the Ruby modules need the MinGW compiler, but hey, I also installed Qt, so everything is fine with it.
  3. Just need DevelopmentKit for Rails assembly. Unpack need top directory with Ruby.
  4. SQLite - must always begin with small, so we will not threaten to MySQL and PostgreSQL. To strongly not to bother take Precompiled Binaries for Windows. Archives need to unpack in Ruby \ bin directory.
  5. Next on the Start menu, find the Comand Prompt with Ruby, run (open the command line in the directory sites, by default C: \ Sites) and execute the following commands:
    1. gem install sqlite3 - setting SQLite
    2. gem install rails - rail installation
  6. Create a test application:
    1. rails new blog
    2. cd blog
    3. rails server - web server is running, you will find the website at the following address: localhost: 3000

This option is to install and run the test application can be used in the case, unless you use special assembly. But Ruby is positioned as a programming language for rapid development. So why not take advantage of tools that allow for quick install Ruby on Rails and see the result almost immediately? This serves a good purpose RailsInstaller . Download the latest version and run the installation.

Installin with RailsInstaller

During the installation process you must go through three simple steps, demonstrated at the following pictures below. When the installation is completed, the Comand Prompt with Ruby and Rails. Then repeat steps 5-6 above.

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.
Support the author Donate

Comments

Only authorized users can post comments.
Please, Log in or Sign up
Donate

Hello, Dear Users of EVILEG!!!

If the site helped you, then support the development of the site financially, please.

You can do it by following ways:

Thank you, Evgenii Legotckoi

A
April 6, 2020, 5:24 a.m.
Alexey

C++ - Test 001. The first program and data types

  • Result:86points,
  • Rating points6
R
April 5, 2020, 2:32 p.m.
Roman

C++ - Test 002. Constants

  • Result:91points,
  • Rating points8
AP
April 5, 2020, 2:31 p.m.
Alexander Peshkov

C++ - Test 001. The first program and data types

  • Result:60points,
  • Rating points-1
Last comments
April 3, 2020, 8:06 a.m.
Konstantin Grudnitskiy

Я надеюсь вы уже разобрались в чем дело, но если вдруг нет, то проблема состоит в том, что вы пытаетесь запустить программу из интерпретатора питона. Файл main.py это уже готова…
April 3, 2020, 6:18 a.m.
Konstantin Grudnitskiy

>>> text = 'hello world'>>> ' '.join(word for word in text.split()[:-1])'hello'>>> def remove_last_word(text):... return text and ' '.join(word for word in text.s…
March 27, 2020, 2:40 p.m.
Evgenij Legotskoj

Добрый день. В конце пятой статьи скачать можете.
March 27, 2020, 2:28 p.m.
mkdir _

Здравствуйте, а можно, пожалуйста, ссылку на целые исходники, если есть?
March 27, 2020, 4:36 a.m.
Evgenij Legotskoj

Скорее всего также, как и для установки всех остальных переменых в CMake, через использование set
Now discuss on the forum
April 6, 2020, 4:19 a.m.
Evgenij Legotskoj

Попробуй не переустанавливать материал, а просто менять цвет
April 6, 2020, 3:39 a.m.
Evgenij Legotskoj

Добрый день. Это всё работает, вот только если есть переопределения каких-то методов, то нет гарантии, что что-то не сломается. Думаю, что нужно допиливать стилевоё оформление в прокси…
April 5, 2020, 11:38 a.m.
Mihailll

Так работает windeployqt --qmldir E:\QTProject\testQmlAndCpp E:\test\build-testQmlAndCpp-Desktop_Qt_5_14_1_MinGW_32_bit-Release
April 5, 2020, 2:35 a.m.
Mihailll

Так работает console.log(textEmail.text) var str = textEmail.text; var n = str.search(/^((([0-9A-Za-z]{1}[-0-9A-z\.]{1,}[0-9A-Za-z]{1})|([0-9А-Яа-я]{1}[-0-9А-я\.]{1,}[…
April 3, 2020, 8:48 a.m.
Intruder

Евгений, добрый день. Спасибо!
EVILEG
About
Services
© EVILEG 2015-2019
Recommend hosting TIMEWEB