From 03fa7085a958cfd07fe7088a6b83a79d6f0eb602 Mon Sep 17 00:00:00 2001 From: Mikhail Dieterle Date: Thu, 24 May 2012 00:41:13 +0300 Subject: typos --- guides/source/getting_started.textile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index c129aeb2e1..4d099860fa 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -500,7 +500,7 @@ database columns. In the first line we do just that (remember that +params[:post]+ contains the attributes we're interested in). Then, +@post.save+ is responsible for saving the model in the database. Finally, we redirect the user to the +show+ action, -wich we'll define later. +which we'll define later. TIP: As we'll see later, +@post.save+ returns a boolean indicating wherever the model was saved or not. @@ -610,7 +610,7 @@ The +link_to+ method is one of Rails' built-in view helpers. It creates a hyperlink based on text to display and where to go - in this case, to the path for posts. -Let's add links to the other views as well, starting with adding this "New Post" link to +app/views/posts/index.html.erb+, placing it above the ++ tag: +Let's add links to the other views as well, starting with adding this "New Post" link to +app/views/posts/index.html.erb+, placing it above the +<table>+ tag: <%= link_to 'New post', :action => :new %> @@ -1129,7 +1129,7 @@ together. Here we're using +link_to+ in a different way. We wrap the +:action+ and +:id+ attributes in a hash so that we can pass those two keys in first as one argument, and then the final two keys as another argument. The +:method+ and +:confirm+ -options are used as html5 attributes so that when the click is linked, +options are used as html5 attributes so that when the link is clicked, Rails will first show a confirm dialog to the user, and then submit the link with method +delete+. This is done via the JavaScript file +jquery_ujs+ which is automatically included into your application's layout -- cgit v1.2.3 From f1c2727d2a6ac492b799b7d79168e32c412d3c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rory=20O=E2=80=99Kane?= Date: Thu, 24 May 2012 11:39:55 -0400 Subject: capitalize HTML5 in Getting Started Guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit these pages capitalize “HTML5”: http://en.wikipedia.org/wiki/HTML5 http://dev.w3.org/html5/spec/ http://www.html5rocks.com/en/ --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 4d099860fa..1979d87a06 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1129,7 +1129,7 @@ together. Here we're using +link_to+ in a different way. We wrap the +:action+ and +:id+ attributes in a hash so that we can pass those two keys in first as one argument, and then the final two keys as another argument. The +:method+ and +:confirm+ -options are used as html5 attributes so that when the link is clicked, +options are used as HTML5 attributes so that when the link is clicked, Rails will first show a confirm dialog to the user, and then submit the link with method +delete+. This is done via the JavaScript file +jquery_ujs+ which is automatically included into your application's layout -- cgit v1.2.3 From 470c1516b384f0ae710cdcf4f5a83a81f909252c Mon Sep 17 00:00:00 2001 From: Rafael Magana Date: Fri, 25 May 2012 11:01:03 -0500 Subject: [getting started] specify that rails new blog executes bundle install --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 1979d87a06..628010697f 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -108,7 +108,7 @@ To use this generator, open a terminal, navigate to a directory where you have r $ rails new blog -This will create a Rails application called Blog in a directory called blog. +This will create a Rails application called Blog in a directory called blog and install the gem dependencies specified in +Gemfile+ using +bundle install+. TIP: You can see all of the command line options that the Rails application builder accepts by running +rails new -h+. -- cgit v1.2.3 From 3e7d43b43c71a4b4bfc53a51f2383a1d5a75e71f Mon Sep 17 00:00:00 2001 From: Rafael Magana Date: Fri, 25 May 2012 11:10:48 -0500 Subject: [getting started] specify what # and $ denotes in the prompt in unix-like OSs --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 628010697f..35ae52e1d5 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -75,7 +75,7 @@ By following along with this guide, you'll create a Rails project called (very) simple weblog. Before you can start building the application, you need to make sure that you have Rails itself installed. -TIP: The examples below use # and $ to denote terminal prompts. If you are using Windows, your prompt will look something like c:\source_code> +TIP: The examples below use # and $ to denote superuser and regular user terminal prompts respectively in a UNIX-like OS. If you are using Windows, your prompt will look something like c:\source_code> h4. Installing Rails -- cgit v1.2.3 From 10f16e6e390f16979e2b8a26c8b98e286a17f152 Mon Sep 17 00:00:00 2001 From: Rafael Magana Date: Fri, 25 May 2012 11:17:14 -0500 Subject: [getting started] specify which kind of temporary files are stored in the /tmp folder --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 35ae52e1d5..6ba70fa58e 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -138,7 +138,7 @@ application. Most of the work in this tutorial will happen in the +app/+ folder, |README.rdoc|This is a brief instruction manual for your application. You should edit this file to tell others what your application does, how to set it up, and so on.| |script/|Contains the rails script that starts your app and can contain other scripts you use to deploy or run your application.| |test/|Unit tests, fixtures, and other test apparatus. These are covered in "Testing Rails Applications":testing.html| -|tmp/|Temporary files| +|tmp/|Temporary files (like cache, pid and session files)| |vendor/|A place for all third-party code. In a typical Rails application, this includes Ruby Gems and the Rails source code (if you optionally install it into your project).| h3. Hello, Rails! -- cgit v1.2.3 From 6999b36c1b76393e68b0b67540f34d18b37e7957 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 26 May 2012 17:45:58 +0530 Subject: make it explicit that bundle install at the time of app creation installs only the gems that are already in the gemfile [ci skip] --- guides/source/getting_started.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/getting_started.textile') diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 6ba70fa58e..342e7284b0 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -108,7 +108,7 @@ To use this generator, open a terminal, navigate to a directory where you have r $ rails new blog -This will create a Rails application called Blog in a directory called blog and install the gem dependencies specified in +Gemfile+ using +bundle install+. +This will create a Rails application called Blog in a directory called blog and install the gem dependencies that are already mentioned in +Gemfile+ using +bundle install+. TIP: You can see all of the command line options that the Rails application builder accepts by running +rails new -h+. -- cgit v1.2.3