From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Ruby on Rails: Getting started (branch 5.1)
Date: Sun, 3 Oct 2010 21:01:25 +0400
Message-ID: <20101003170125.GA6153@atlas.home> (raw)
In-Reply-To: <AANLkTi=MnRW6sFQdQdc_Rn-zS9NNbhOrD4rtifU1xESq@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]
On Sun, Oct 03, 2010 at 07:19:00PM +0400, Алексей Синицын wrote:
> 3 октября 2010 г. 16:18 пользователь Алексей Синицын
> <asinitsinster@gmail.com> написал:
>
> > В качестве учебного пособия подошло:
> > http://rusrails.ru/getting-started-with-rails . Правда оказалось есть
> > некоторые различия в том что описано с тем как это работает здесь. В
> > частности, там пример создаётся командой
> > rails new blog
> > а здесь "new" не надо, "rails name" сразу создаёт структуру
> > каталогов. Но далее там, для того что бы создать контроллер,
> > предлагается следующая команда:
> > rails generate controller home index
> > Поскольку в нашем случае у рельс нет никаких команд и на любое слово
> > оно создаёт структуру каталогов, то желаемое так очевидно не
> > получается.
>
> Впрочем, ответ на первый вопрос нашёл:
>
> script/generate controller home index
>
> Но расхождения всё равно продолжаются и поэтому второй вопрос, о
> разнице и специфических особенностях, пока остаётся в силе.
Причина расхождений указана в используемом вами руководстве прямо
перед содержанием:
| Это руководство основывается на Rails 3.0. Часть кода, показанного
| здесь, не будет работать для более ранних версий Rails. Руководство
| для начинающих, основанное на Rails 2.3 Вы можете просмотреть в
| архиве
В branch 5.1 находится именно версия 2.3 (да и в Сизифе сейчас пока
она же).
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-10-03 17:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-03 12:18 Алексей Синицын
2010-10-03 15:19 ` Алексей Синицын
2010-10-03 17:01 ` Sergey Vlasov [this message]
2010-10-03 17:36 ` Алексей Синицын
2010-10-04 12:33 ` Timur Batyrshin
2010-10-04 15:42 ` Алексей Синицын
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101003170125.GA6153@atlas.home \
--to=vsu@altlinux.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git