Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2016, 4:16 a.m.

Ruby on Rails - First start on the Windows

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:
  6. gem install sqlite3 - setting SQLite
  7. gem install rails - rail installation
  8. Create a test application:
  9. rails new blog
  10. cd blog
  11. 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.

Do you like it? Share on social networks!

Comments

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

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

  • Result:50points,
  • Rating points-4
m

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

  • Result:80points,
  • Rating points4
m

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

  • Result:20points,
  • Rating points-10
Last comments
ИМ
Игорь МаксимовNov. 22, 2024, 7:51 p.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 9:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 3:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 2:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 6:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
Evgenii Legotckoi
Evgenii LegotckoiJune 24, 2024, 10:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 2:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 10:49 a.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…
9
9AnonimOct. 25, 2024, 4:10 p.m.
Машина тьюринга // Начальное состояние 0 0, ,<,1 // Переход в состояние 1 при пустом символе 0,0,>,0 // Остаемся в состоянии 0, двигаясь вправо при встрече 0 0,1,>…

Follow us in social networks