| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
Conflicts:
guides/source/getting_started.md
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Update guides/source/getting_started.md [ci skip]
|
| | |
| | |
| | | |
Reflect change in 009873a that renamed the script/ folder to bin/
|
|/ / |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an alternative implementation to #7771 thanks to the advice of @spastorino
Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion.
This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required.
In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated.
The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one).
cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik
ATP Railties and Actionpack.
|
|
|
|
|
|
|
|
| |
This reverts commit 83cb6fbd13f3c5ea3106b9a57964b1a6fb243682.
Reason: very trivial
[ci skip]
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It's really comfy being able to copy-paste the file paths.
I suppose there's also some benefit in trying to figure out the file name as a small exercise, but I don't think that sort of thing belongs in "Getting Started".
|
| |
|
|
|
|
|
| |
We have three or four different introduction sentences to the guides.
After this commit, we use the same one everywhere.
|
|
|
|
| |
It's obvious that the guide is based on this version of Rails, and may not be backwards compatible.
|
| |
|
| |
|
|
|
|
| |
It's properly called "Mac OS X"
|
|
|
|
| |
This is based on Rails 4, not Rails 3.2.
|
| |
|
|
|
|
|
|
| |
This reverts commit c94cfdad6388dcdfaf4c10b9e8cee46baf2a7901.
* This is the new 4.0 (master) directory structure
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* This shows the reader there is a method: and
data: parameters
|
|
|
|
| |
* No need to give a simple example, as we have a
partial that we create in the blog app
|
|
|
|
|
|
|
| |
* Rails generate model Post ______ creates the
attr_accessible line for you for any fields
you specify. Changed the section to describe
what this line in the model does.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This reverts commit f5b9ed4fbc3215a5fce48985ea372ad3f1182252.
REASON: Translation work can not be done in the docrails repository
|
| |
|
| |
|
|
|
|
| |
(incorporating feedback from a newbie)
|
| |
|
|\
| |
| |
| |
| |
| | |
Conflicts:
activerecord/lib/active_record/persistence.rb
railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
|
| |
| |
| |
| | |
Also fix # to $ for `rake routes` command
|
| |
| |
| |
| | |
getting_started guide
|
| |
| |
| |
| | |
This was extremely confusing to new programmers, also different operating systems call the command line something different
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the default test locations to avoid confusion around the common
testing terms "unit" and "functional".
Add new rake tasks for the new locations, while maintaining backwards
compatibility with the old rake tasks.
New testing locations are as follows:
app/models -> test/models (was test/units)
app/helpers -> test/helpers (was test/units/helpers)
app/controllers -> test/controllers (was test/functional)
app/mailers -> test/mailers (was test/functional)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Conflicts:
actionmailer/lib/action_mailer/base.rb
activesupport/lib/active_support/configurable.rb
activesupport/lib/active_support/core_ext/module/deprecation.rb
guides/source/action_controller_overview.md
guides/source/active_support_core_extensions.md
guides/source/ajax_on_rails.textile
guides/source/association_basics.textile
guides/source/upgrading_ruby_on_rails.md
While resolving conflicts, I have chosen to ignore changes done in
docrails at some places - these will be most likely 1.9 hash syntax
changes.
|