Rails Guides Idea: User can specify their OS type to filter setup instructions

37 views
Skip to first unread message

deepak

unread,
Apr 19, 2016, 2:49:13 PM4/19/16
to Ruby on Rails: Core
hi folks,

would it be a good idea to let the user specify their OS type before seeing the setup instructions ?

ie. rather than giving the commands for all the OS types - one after the other

2.4.2 MySQL and PostgreSQL


To be able to run the suite for MySQL and PostgreSQL we need their gems. Install first the servers, their client libraries, and their development files.

On OS X, you can run:

$ brew install mysql
$ brew install postgresql

Follow the instructions given by Homebrew to start these.


In Ubuntu just run:


$ sudo apt
-get install mysql-server libmysqlclient15-dev
$ sudo apt
-get install postgresql postgresql-client postgresql-contrib libpq-dev

etc
....


The suggestion is that, show all the OS types by default. But let the user specify their OS type to filter quickly.

A script which the user can download and just run, will also be nice

--
cheers,
deepak

Xavier Noria

unread,
Apr 19, 2016, 3:01:39 PM4/19/16
to rubyonrails-core
On Tue, Apr 19, 2016 at 10:02 AM, deepak <kannan...@gmail.com> wrote: 

A script which the user can download and just run, will also be nice

deepak

unread,
Apr 20, 2016, 2:25:06 AM4/20/16
to Ruby on Rails: Core
hi Xavier,

Have seen it, but was thinking more of improving the hard way
ie. the hard way is for people who want to install it manually
personally i guess - because a VM is slower.

So after asking for the user's OS type, give an option to download an install script.
It will have the same commands as given in the guide,
or alternatively detect the OX type in the install script.

Xavier Noria

unread,
Apr 20, 2016, 3:42:21 PM4/20/16
to rubyonrails-core
I am not sure about scripts. In particular in Mac OS X this stuff is not standardized: Homebrew, MacPorts, Postgres.app, different Ruby version managers, etc. The assumptions you can make are few. Also, IMO not worth doing a super flexible and smart installer for this simple task. If you go the hard way you probably have already half of the things installed and taking the remaining steps is not going to be a big deal.

It is difficult to say if reorganizing that section and adding a filter would be good, but probably worth giving it a try to be able to compare both versions. You interested in exploring this?

deepak

unread,
Apr 21, 2016, 3:16:51 AM4/21/16
to Ruby on Rails: Core
hi,

It is difficult to say if reorganizing that section and adding a filter would be good, but probably worth giving it a try to be able to compare both versions. You interested in exploring this?

yes. absolutely. will send a patch and attach a GIF for comparison.

On Thursday, 21 April 2016 01:12:21 UTC+5:30, Xavier Noria wrote:
I am not sure about scripts. In particular in Mac OS X this stuff is not standardized: Homebrew, MacPorts, Postgres.app, different Ruby version managers, etc. The assumptions you can make are few. Also, IMO not worth doing a super flexible and smart installer for this simple task. If you go the hard way you probably have already half of the things installed and taking the remaining steps is not going to be a big deal.

It is difficult to say if reorganizing that section and adding a filter would be good, but probably worth giving it a try to be able to compare both versions. You interested in exploring this?


deepak

unread,
Apr 22, 2016, 2:42:40 AM4/22/16
to Ruby on Rails: Core
hi,

not sure how to wrap a div

have attached a screenshot of the select. have added it at the very top
rendered inside a notice section
--
deepak 
rails guides the-hard-way os type select.png
Reply all
Reply to author
Forward
0 new messages