Commit Graph

392 Commits

Author SHA1 Message Date
Vijay Dev
2114e2187d some small corrections & wrapping changes in the initialization guide
This guide is currently a wip and pending reviews. [ci skip]
2012-05-26 18:07:17 +05:30
Vijay Dev
575e77ba16 Merge branch 'master' of github.com:lifo/docrails 2012-05-26 17:49:59 +05:30
Vijay Dev
06731530ff fix mention of ruby versions that rails 4 won't run on [ci skip] 2012-05-26 17:48:40 +05:30
Vijay Dev
6999b36c1b make it explicit that bundle install at the time of app creation
installs only the gems that are already in the gemfile

[ci skip]
2012-05-26 17:46:05 +05:30
Vijay Dev
e8cac28917 Merge pull request #6454 from rafmagana/guides_rails_on_rack
[guides] Update rails on rack
2012-05-26 04:56:47 -07:00
Ryan Bigg
9122143767 [routing guide] Add mention of get '/:username' route
This is fairly common in Rails applications and is requested a lot of the time on Stack Overflow and #rubyonrails
2012-05-26 16:12:37 +10:00
Tadas Tamosauskas
096cc0e39d Update paths in action_view_overview raislguide to reflect asset pipeline conventions. 2012-05-25 18:25:59 +01:00
Rafael Magana
12111e2391 [getting started] Update Setting the Application Home Page to show the get "welcome/index" route 2012-05-25 12:23:04 -05:00
Rafael Magana
10f16e6e39 [getting started] specify which kind of temporary files are stored in the /tmp folder 2012-05-25 11:17:41 -05:00
Oscar Del Ben
4ce51e3d76 [Guides] Add missing file descriptions 2012-05-25 09:15:47 -07:00
Oscar Del Ben
26149260bf [Guides] Add inflector example 2012-05-25 09:15:47 -07:00
Rafael Magana
3e7d43b43c [getting started] specify what # and $ denotes in the prompt in unix-like OSs 2012-05-25 11:10:48 -05:00
Rafael Magana
470c1516b3 [getting started] specify that rails new blog executes bundle install 2012-05-25 11:01:03 -05:00
Oscar Del Ben
0b11840d1b [Guides] Update rack example 2012-05-24 08:53:03 -07:00
Oscar Del Ben
2ccc2109b7 [Guides] Add core_ext/object section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
cd6aa9f095 [Guides] Rewrite Rails application section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
27874a8e43 [Guides] Add extract_options section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
f819b90a13 [Guides] Update ruby version check 2012-05-24 08:53:03 -07:00
Oscar Del Ben
f2c60c7941 [Guides] Add sprockets to list of loaded frameworks 2012-05-24 08:53:02 -07:00
Rory O’Kane
f1c2727d2a capitalize HTML5 in Getting Started Guide
these pages capitalize “HTML5”:

http://en.wikipedia.org/wiki/HTML5
http://dev.w3.org/html5/spec/
http://www.html5rocks.com/en/
2012-05-24 11:39:55 -04:00
Rory O’Kane
aa54d29f9b grammar fixes in a tip in Rails routing guide 2012-05-24 11:39:31 -03:00
Piotr Sarnacki
95c49f2445 Merge pull request #6447 from chancancode/add_backporting_instructions_to_contrib_guides
Added instructions for backporting changes to guides.
2012-05-23 23:08:39 -07:00
Mikhail Dieterle
03fa7085a9 typos 2012-05-24 00:41:13 +03:00
Rafael Mendonça França
7a23ada0e5 Merge pull request #6466 from markmcspadden/hash_deep_transform_keys
Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert ...
2012-05-23 11:41:58 -07:00
Mark McSpadden
2b5b60fc3c Add Hash#deep_transform_keys and Hash#deep_transform_keys! Also convert deep_*_keys to use deep_transform_keys. 2012-05-23 13:11:06 -05:00
Godfrey Chan
c97fb889a6 Added instructions for backporting changes to guides.
I was looking for instructions on backporting changes the other day and
wasn't able to find it anywhere. I updated the contrib guides based on
the disccusion in #6420, #6215 and #6447.
2012-05-23 11:03:08 -07:00
Vijay Dev
91305adef8 Merge branch 'master' of github.com:lifo/docrails 2012-05-23 23:26:39 +05:30
Vijay Dev
9ae0c66787 Merge pull request #6383 from oscardelben/add_oscardelben_to_authors
Add oscardelben to authors
2012-05-23 10:49:06 -07:00
Vijay Dev
030e04f2a1 Merge pull request #6194 from ayrton/optimized_images
Optimizing all images used in the guides
2012-05-23 10:45:57 -07:00
Vijay Dev
d31b765628 Revert "Remove Obsolute root specifiying short syntax"
This reverts commit feaa7b35a0214240eb34780ab51b843571e74904.

Reason: Incorrect change. That's a Rails 4 feature and will not
obviously work in 3.2.3.

[ci skip]
2012-05-23 22:50:21 +05:30
Oscar Del Ben
07f73219c0 [Guides] Fix sample code 2012-05-23 09:01:21 -07:00
Oscar Del Ben
13612ae501 [Guides] Rewrite server start section 2012-05-23 08:53:08 -07:00
Oscar Del Ben
05a4d8b859 [Guides] Rewrite server start section 2012-05-23 08:45:48 -07:00
Lucas Húngaro
a4bb195c91 Adding deep versions of stringify_keys and symbolize_keys (plain and bang) for nested hashes 2012-05-23 11:56:10 -03:00
Mark McSpadden
6ff887321b Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods to use them. 2012-05-23 09:08:04 -05:00
Rafael Magana
7cabb57f6b use ActionDispatch::MiddlewareStack instead of ActionController::MiddlewareStack 2012-05-22 22:09:43 -05:00
Rafael Magana
56ad6ca3ff update loaded middlewares and use of Rack::Server instead of Rack::Builder 2012-05-22 22:02:20 -05:00
Rafael Magana
83f62a069e use ApplicationName::Application instead of ActionController::Dispatcher.new since Dispatcher class no longer exists 2012-05-22 21:33:49 -05:00
Rory O’Kane
f09c84ca26 clarified how file naming affects load order of initializers 2012-05-22 15:50:19 -03:00
Oscar Del Ben
63f094bf29 [Guides] Update rails commands section 2012-05-22 08:55:59 -07:00
Oscar Del Ben
ba55dd59ec [Guides] Change bundler section 2012-05-22 08:48:46 -07:00
Oscar Del Ben
987a74da23 [Guides] Review bin/rails section 2012-05-22 08:43:14 -07:00
Oscar Del Ben
d4d87941cb [Guides] change rails bin section 2012-05-22 08:35:49 -07:00
Oscar Del Ben
acdf8ac58d The initialization guide will cover Rails 4 2012-05-22 08:32:12 -07:00
Gaurish Sharma
feaa7b35a0 Remove Obsolute root specifiying short syntax
This syntax does not seem to work. Throws the error
  "can't convert String into Hash (TypeError)"

Tested on:
* Ruby 1.9.3
* Rails 3.2.3
2012-05-22 19:29:25 +05:30
Gaurish Sharma
4220290d09 Fix broken link 2012-05-22 11:19:32 +05:30
Carlos Galdino
b02d14aad5 Add several HTML5 input helpers
The input types added are:

- input[type="month"]

- input[type="week"]

- input[type="datetime"]

- input[type="datetime-local"]
2012-05-21 17:23:56 -03:00
Carlos Galdino
1ce4b5b33d Add HTML5 input[type="color"] helper 2012-05-21 17:23:48 -03:00
Piotr Sarnacki
ae8b09c310 More info on commit messages in contributing guide
Add more info on how to write a good commit messages along with
example showing nicely formatted commit message.

Rails git history does not look too well when you try to figure out why
particular changes were introduced. We can do much better than that and
it's never too late to start.
2012-05-21 00:00:05 -07:00
Rafael Mendonça França
a78ee05da1 Fix CHANGELOG order and add a brief description of the changes in the
Action Pack in the upgrading guide. [ci skip]
2012-05-20 18:16:03 -03:00
Oscar Del Ben
05fdb310b6 Getting started guide has been completely rewritten and edited. 2012-05-19 10:02:16 -07:00
Vijay Dev
1551de3c04 Merge branch 'master' of github.com:lifo/docrails 2012-05-19 19:36:48 +05:30
Vijay Dev
d0a3be308c copy edits [ci skip] 2012-05-19 17:40:40 +05:30
Damien Mathieu
12b6307c89 fix typo. probem => problem 2012-05-19 11:06:24 +03:00
Oscar Del Ben
d3f57fbf6e Add oscardelben to authors 2012-05-18 08:45:03 -07:00
Oscar Del Ben
b5e15f37bb Revert "Add oscardelben to authors"
This reverts commit 33284014c65f7cb0c342caeeda32baf10db71cfc.

Reason: this change doesn't belong to DocRails.
2012-05-18 08:41:27 -07:00
Rich Healey
21bff1d664 The middleware stack is compliant with Enumarable and bits of Array
Try to clarify the docs so that it's more clear how the stack behaves.
2012-05-18 16:52:52 +10:00
Alex Soulim
446940c366 Add HTML5 input[type="time"] helper 2012-05-18 08:38:19 +04:00
Ryan Bigg
2e2d381449 [engines] initializer method call needs an argument for initializer name 2012-05-18 12:19:42 +10:00
Oscar Del Ben
33284014c6 Add oscardelben to authors 2012-05-17 14:34:53 -07:00
Vasiliy Ermolovich
a00bca625f update AS docs 2012-05-17 23:01:35 +03:00
Vijay Dev
03f8a57487 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	activerecord/lib/active_record/core.rb
2012-05-17 17:49:33 +05:30
Vijay Dev
a39d144e32 copy edits assets guide [ci skip] 2012-05-17 17:46:12 +05:30
Ryan Bigg
a3a25e7e44 [getting started] remove two more beginningruby links 2012-05-17 20:32:44 +10:00
Ryan Bigg
39b3a10253 [getting started] add comma in 'First we will make a comment partial' 2012-05-17 20:32:33 +10:00
Ryan Bigg
9540747747 [getting started] remove another beginning ruby link 2012-05-17 20:29:52 +10:00
Ryan Bigg
a9f029ebf0 [getting started] briefly explain form_for with array parameters 2012-05-17 20:27:15 +10:00
Ryan Bigg
2c2d70eb95 [getting started] Remove beginning ruby link in posts/show 2012-05-17 20:24:15 +10:00
Ryan Bigg
a4db311da0 [getting started] generating routes manually was done as a learning
exercise, fix typos
2012-05-17 19:56:57 +10:00
Ryan Bigg
cc9a6f2e0a [getting started] split up section about rake routes after 'resources' call 2012-05-17 19:56:57 +10:00
Ryan Bigg
42c6f89c5d [getting started] dialog box is not automatic, is provided through jquery_ujs, which is necessary to have in application layout 2012-05-17 19:56:57 +10:00
Ryan Bigg
9fc5b456a0 [getting started] Fix index template after destroy action addition 2012-05-17 19:56:57 +10:00
Ryan Bigg
a99417be2d [getting started] dabase -> database 2012-05-17 19:56:57 +10:00
Ryan Bigg
00dce85009 [getting started guide] more explanation around the delete routing method: 2012-05-17 19:56:57 +10:00
Ryan Bigg
53aaf95855 [getting started] explain :as option 2012-05-17 19:56:56 +10:00
Damien Mathieu
146105a40f explain why we also add attr_accessible in the model 2012-05-17 10:25:59 +02:00
Mark Rushakoff
32f3c272b8 Fix some code formatting in core_ext guide
[ci skip]

<plus> is nonstandard Textile; RailsGuides::TextileExtensions::plusplus
is the method that causes multiple code-formatted `+` symbols to
generate crap like

    <code>1 <notextile><tt>+</tt></notextile> 2 ...</code>

instead of the expected output:

    <code>1 + 2 ...</code>
2012-05-16 22:48:30 -07:00
Vijay Dev
bf0212b92a remove stray text in getting started guide [ci skip] 2012-05-17 01:48:47 +05:30
Vijay Dev
98bfccbdb5 document the AR::Base#ids method introduced in 9307616 [ci skip] 2012-05-17 01:34:00 +05:30
Vijay Dev
e29626901a remove image_tag onmouseover option docs [ci skip] 2012-05-16 21:17:25 +05:30
Richard Hulse
f94567a2b8 [guides] add note about cosequences of option changes 2012-05-16 22:06:10 +12:00
Ryan Bigg
950a7b40af [getting started] explain that posts_path exists due to how we defined routes earlier 2012-05-16 18:11:21 +10:00
Ryan Bigg
8cfde229dd [getting started] Split up refactoring of new and edit templates 2012-05-16 18:10:55 +10:00
Ryan Bigg
dd3ee84cd8 [getting started] don't call it 'a _form partial', just 'a partial' 2012-05-16 18:10:39 +10:00
Ryan Bigg
0c90bf058a [getting started] remove tab in form partial 2012-05-16 18:05:36 +10:00
Ryan Bigg
038af99a07 [getting started] Prefix users templates with 'users' to show that's where they're coming from 2012-05-16 18:05:36 +10:00
Ryan Bigg
f76e0a5484 [getting started] split up adding link for edit to index and show templates 2012-05-16 18:05:36 +10:00
Ryan Bigg
9c76aa0cc5 [getting started] grammatical changes at beginning of update action section 2012-05-16 18:05:35 +10:00
Ryan Bigg
9073cf85db [getting started] some more handholding around where exactly the error would appear when a post is invalid 2012-05-16 18:05:35 +10:00
Ryan Bigg
10dfbaa9db [getting started] fix weird linebreak when talking about pluralize 2012-05-16 18:05:35 +10:00
Ryan Bigg
e91a1a0321 [getting started] re-add new action back to PostsController, explain that it'll be explained in a short while 2012-05-16 18:05:35 +10:00
Ryan Bigg
926e160ed0 [getting started] Explain the create action check for validations better 2012-05-16 18:05:35 +10:00
Ryan Bigg
9a8c91d8e8 [getting started] add attr_accessible to Post model 2012-05-16 18:05:35 +10:00
Ryan Bigg
aa7f2a3564 [getting started] split up addition of links to index/show/new area 2012-05-16 18:05:35 +10:00
Ryan Bigg
ca18e2f8dd [getting started] add segue at the end of posts/index section 2012-05-16 11:02:49 +10:00
Ryan Bigg
af2a6ac853 [getting started] indent iteration in posts/index template 2012-05-16 10:51:44 +10:00
Ryan Bigg
533bcd75d3 [getting started] Split up creation of route, action and view for PostsController#index 2012-05-16 10:51:44 +10:00
Vasiliy Ermolovich
0666e7b3bf update docs on String#at about ruby version 2012-05-15 21:00:42 +03:00
Vasiliy Ermolovich
80b681686a remove backported string interpolation 2012-05-15 20:53:28 +03:00
David Jones
e2322a9087 Make the 'Using Models in Your Migrations' example code more concise by using update_all method 2012-05-15 09:40:24 -07:00