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

M
Feb. 26, 2020, 9:48 p.m.
Metalhaker

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

  • Result:60points,
  • Rating points-1
a
Feb. 25, 2020, 5:40 a.m.
ayb

C++ - Test 005. Structures and Classes

  • Result:83points,
  • Rating points4
DZ
Feb. 24, 2020, 2:47 p.m.
Dmitrij Zlobin

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:40points,
  • Rating points-8
Last comments
Feb. 24, 2020, 3:54 a.m.
Evgenij Legotskoj

Добрый день. Там будет url, на который указывает ссылка тега a в пагинаторе, если правильно помню )) Написал этот код и забыл.
B
Feb. 24, 2020, 12:37 a.m.
BahaMeirman

Евгений Здравствуйте! Не могу понять вот эту часть кода: url: jQuery(this).attr('action') наверное здесь должен быть путь к url, тогда 'action' на какой url указывает?
Feb. 17, 2020, 3:22 a.m.
Evgenij Legotskoj

Добрый день. Это кастомный тег, помещается в файл, который находится в каталоге templatetags myapp/ templatetags/ myapp.py
B
Feb. 16, 2020, 1:36 p.m.
BahaMeirman

Добрый вечер! Монжно по подробней о теге get_companion? ссылка не работает.
Now discuss on the forum
v
Feb. 26, 2020, 6:13 p.m.
vlaaad20

Добавил в папку проекта следующие либы, ничего не изменилось. Надо что-то где-то дополнительно прописывать или нет? Я просто не очень понимаю...
a
Feb. 25, 2020, 8:06 a.m.
ayb

Да
Feb. 24, 2020, 12:04 p.m.
Evgenij Legotskoj

Добрый день. Вот пример с дружественного ресурса с движением камеры
Feb. 24, 2020, 6:29 a.m.
Evgenij Legotskoj

Qt не предоставляет функционала по запросу root прав во время выполнения программы. Поэтому нужно использовать платформозависимый функционал, для Linux это будет выглядеть так: #include…
Feb. 24, 2020, 3:47 a.m.
Evgenij Legotskoj

Добрый день. Что означает клиентская область? Это изображение? Вам нужно распознавать символы текста или всё-таки пользователь будет вводить текст с клавиатуры, просто в любом месте "абстр…
EVILEG
About
Services
© EVILEG 2015-2019
Recommend hosting TIMEWEB