Commit Graph

8354 Commits

Author SHA1 Message Date
Yehuda Katz
adff4a706a Initial queue implementation 2012-04-26 21:38:27 -07:00
Alexey Vakhov
2497fd90f4 Fix misprints in assert_file & assert_instance_method docs 2012-04-26 18:32:01 +04:00
Alexey Vakhov
5decf8352d Namedspaced generator indent method test refactoring 2012-04-26 18:16:00 +04:00
kennyj
627f89b189 Fix #5847 and #4045. Load AR::Base before loading an application model. 2012-04-26 21:21:02 +09:00
Yehuda Katz
363a06f351 Routes reloader knows how to reload external files 2012-04-25 22:45:56 -05:00
Yehuda Katz
568ae222af Fix missing Rails.env in route inspect tests 2012-04-25 17:01:27 -05:00
Yehuda Katz
47be2f101c Fix the build 2012-04-25 16:43:01 -05:00
Yehuda Katz
fe6573e718 Make files in paths consistent 2012-04-25 16:12:44 -05:00
Jose and Yehuda
6acebb38bc Allow loading external route files from the router
This feature enables the ability to load an
external routes file from the router via:
  draw :filename

External routes files go in +config/routes+. This
feature works in both engines and applications.
2012-04-25 16:07:17 -05:00
Jeremy Kemper
2970e3f054 Remove blank line at the end of routes.rb 2012-04-25 07:11:39 -07:00
José Valim
33d80919ff Merge pull request #5902 from avakhov/generator-no-indent-blank-lines
Don't indent blank lines in named base generators
2012-04-25 06:15:12 -07:00
Vijay Dev
4a3ce153f1 Merge branch 'master' of github.com:lifo/docrails 2012-04-25 18:33:36 +05:30
Vijay Dev
9e962ffd9a Revert "Added warning that require_tree includes files in unspecified order. So, that people may know the order of their scripts might be the reason that their scripts work in just fine in development but not in production. "
This reverts commit 9dbd511172170f60b96012b7b87044638c3962b8.

Reason: Sounds like something for the guide, not the template.
2012-04-25 18:21:21 +05:30
Vijay Dev
dca1cd4a7a removing changes made in ccd0b511c933d3e2c7f3e345622ad2cc17728de5 and 189a1728b561c19404f814979fd73adc5bea554d [ci skip] 2012-04-25 18:18:10 +05:30
Jeremy Kemper
bd6203f9f0 Merge pull request #5880 from asanghi/master
Stamp out ruby-debug with debugger everywhere else in the code base
2012-04-25 05:09:14 -07:00
Alexey Vakhov
6ac9e493fb Don't indent blank lines in named base generators 2012-04-25 12:01:33 +04:00
Alexey Vakhov
93bcb0c268 Remove lonely number sign 2012-04-25 11:51:33 +04:00
Jose and Yehuda
a837b30f84 Clean up some straggling build failures 2012-04-24 23:55:39 -05:00
Jose and Yehuda
56cdc81c08 Remove default match without specified method
In the current router DSL, using the +match+ DSL
method will match all verbs for the path to the
specified endpoint.

In the vast majority of cases, people are
currently using +match+ when they actually mean
+get+. This introduces security implications.

This commit disallows calling +match+ without
an HTTP verb constraint by default. To explicitly
match all verbs, this commit also adds a
:via => :all option to +match+.

Closes #5964
2012-04-24 22:52:26 -05:00
Aditya Sanghi
d6c831c198 and one more time 2012-04-24 21:56:41 -05:00
Gaurish Sharma
189a1728b5 Added notice on how to enable gzip compression.
(Fixed typo from previous commit: ccd0b511c933d3e2c7f3e345622ad2cc17728de5)
2012-04-25 01:30:05 +05:30
Gaurish Sharma
ccd0b511c9 Added notice on how to enable gzip compression in rails app using Rack::Deflater. it is disabled & commented out by default. 2012-04-25 01:27:21 +05:30
Gaurish Sharma
9dbd511172 Added warning that require_tree includes files in unspecified order. So, that people may know the order of their scripts might be the reason that their scripts work in just fine in development but not in production. 2012-04-25 01:14:57 +05:30
Jeremy Kemper
f822024ccc Merge pull request #5929 from FLOChip/notes
`rake notes` and `rake notes:custom` now support css, scss, and css.
2012-04-24 10:12:14 -07:00
Egor Homakov
f70d95ebd5 Deleting insecure and "bad practice" code. related: http://homakov.blogspot.com/2012/04/whitelist-your-routes-match-is-evil.html 2012-04-24 17:05:26 +04:00
Joe Van Dyk
82c3aca17e Only include Rake::DSL if it's defined.
rake < 0.9 doesn't define Rake::DSL.
2012-04-23 06:04:52 -07:00
Carlos Antonio da Silva
a4c4fa307f Refactor GeneratedAttributes
* Move reference? method to class to remove duplicated code
* Move to_sym typecast from #initialize to .parse method (make it
  easier to refactor reference?), remove AS object/blank require
* Use []= instead of merge!({})
* Remove in? in favor of include?, remove AS object/inclusion require
2012-04-22 21:53:18 -03:00
Teng Siong Ong
55ceced1fb rake notes and rake notes:custom now support
css, scss and css.
2012-04-22 18:45:13 -05:00
Jeremy Kemper
42f6e9fb38 Freeze the middleware stack after it's built
So apps that accidentally add middlewares later aren't unwittingly dumping them in a black hole.

Closes #5911
2012-04-20 16:02:12 -07:00
Santiago Pastorino
66ea296bfd Remove unused generator options. This was added for the removed rails new --http 2012-04-18 17:56:08 -03:00
Santiago Pastorino
17b8fd5540 Add hook for add_resource_route 2012-04-18 17:56:08 -03:00
Juan Manuel Azambuja
c90b43f696 Add missing dependency for active_record_deprecated_finders 2012-04-18 10:54:50 -03:00
Piotr Sarnacki
e9f778af9a Merge pull request #5869 from LachyGroom/patch-1
Changes b tag to strong
2012-04-17 16:35:52 -07:00
Aditya Sanghi
67ede88055 another attempt at the language 2012-04-18 02:24:44 +05:30
Vijay Dev
938464d475 the index option is always created if the type is one of references or belongs_to. Refactoring it to a simpler form and fixing the build 2012-04-18 02:16:44 +05:30
Vijay Dev
3b0ffb1efd let's not use and in place of && 2012-04-18 00:37:12 +05:30
Aditya Sanghi
0232543e0d stamp out ruby-debug19 with extreme prejudice :) 2012-04-17 15:31:05 +05:30
Santiago Pastorino
3df776c9ad Fix test 2012-04-16 23:36:09 -03:00
CollectiveJam
b9b9bd8cb7 Changes b tag to strong
The change is made due to importance of the attribute name (e.g. Name:) on the page (versus just stylistic / appearance sake tag).
2012-04-16 17:26:25 -07:00
Jeremy Kemper
a0c2cfdc51 Merge pull request #5835 from asanghi/master
Update Gemfile to use 'debugger' instead of unmaintained 'ruby-debug19'
2012-04-16 09:06:58 -07:00
Rodrigo Rosenfeld Rosas
21f6d723f4 Make log_level explicit in production.rb template
The 'production' environment name is currently checked for setting up
the default log_level to 'info' but that won't work if the environment
is copied to staging.rb, for instance. Better to have it explicitly set.
2012-04-16 11:17:40 -03:00
Arun Agrawal
ba3e27532b fix scaffold_generator_test.rb and model_generator_test.rb
Broken after this 6a054b0038bac288a1f6e45feb5470f4ee492081
2012-04-16 12:10:39 +05:30
Joshua Wood
ca0af8221a Automatically create indexes for references/belongs_to statements in migrations. 2012-04-14 14:18:42 -07:00
Vasiliy Ermolovich
8a28e7355a remove extra new line from generated Gemfile 2012-04-14 17:51:33 +03:00
Aditya Sanghi
41af36f5d3 Hey, let's just make it easier for everyone and dump the unmaintained ruby-debug19 and move to debugger. Whats the consensus here? If we want better adoption on ruby1.9, please lets just use this fork. 2012-04-14 01:45:48 +05:30
Vijay Dev
8248f4202d Merge branch 'master' of github.com:lifo/docrails 2012-04-12 21:44:11 +05:30
Patrick Helm
0e49ef4330 Provided fix for calling rake tasks within mountable engines 2012-04-12 16:25:28 +02:00
Vijay Dev
3bcfa614af copy editing [ci skip] 2012-04-11 22:43:50 +05:30
ask
4bb76eecfe "rails new -h" shows message in rails directory 2012-04-09 22:26:52 +06:00
Prem Sichanugrist
cf03daa5f5 Fix code example in generator test case 2012-04-09 09:48:30 -04:00
Gaurish Sharma
8f25db9067 Added instructions on port number 2012-04-09 01:41:04 +05:30
Jeremy Kemper
e4f911aa2a Fix a couple more script[type=text/javascript] tests affected by #5748 2012-04-08 07:28:31 -07:00
Jeremy Kemper
0032da1b3e Merge pull request #5748 from ai/no_type_in_html5
Remove unnecessary in HTML 5 type attribute with default value
2012-04-08 06:56:44 -07:00
Roman V. Babenko
1e36e02df3 Class variables has been fixed to Singleton instance variables at Rails module 2012-04-06 07:59:57 +03:00
Vijay Dev
163258ba2a Merge branch 'master' of github.com:lifo/docrails 2012-04-05 22:30:30 +05:30
Vijay Dev
8a82204a42 minor fixes [ci skip] 2012-04-05 22:21:27 +05:30
Andrey A.I. Sitnik
f3fb416b89 Remove unnecessary in HTML 5 type attribute with default value 2012-04-05 15:32:37 +04:00
Santiago Pastorino
a9398a7da4 Merge pull request #5716 from jurriaan/tr-gsub-cleanup
Updated/changed unneeded tr/gsubs
2012-04-04 10:43:24 -07:00
Hrvoje Šimić
d4fa512def added example, removed blank lines 2012-04-04 11:31:09 +02:00
Vijay Dev
02b9c22df8 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/engines.textile
2012-04-04 12:42:22 +05:30
Aaron Patterson
3b378a7840 use File.binread to pull in the schema cache 2012-04-03 15:57:01 -07:00
Jurriaan Pruis
2d8396fc9f Updated/changed useless tr/gsubs 2012-04-03 15:16:09 +02:00
Aaron Patterson
a3dc8ba16f Merge pull request #5708 from romanvbabenko/refactor/add_gem_filters
Unnecessary uniqueness & force mapping has been removed at BacktraceClea...
2012-04-02 16:18:25 -07:00
Roman V. Babenko
d9e4dd1d66 Unnecessary uniqueness & force mapping has been removed at BacktraceCleaner#add_gem_filters 2012-04-03 01:58:40 +03:00
Cezary Baginski
1423cf9b3b Correct invalid route example [ci skip] 2012-04-02 01:04:40 +02:00
Piotr Sarnacki
fff3e75e1c Usage file in generators shouldn't be fetched only based on source_root
In case `source_roout` is not set, `default_source_root` is used,
which includes also `templates` directory. If there is no `templates`
directory, `default_source_root` is not available and USAGE will not
be displayed. USAGE should be also checked based on default
directory excluding `templates`.
2012-04-01 23:51:18 +02:00
Vijay Dev
4850f2e0bb Merge pull request #5684 from arunagw/warning_removed_railties
warning removed: `&' interpreted as argument prefix
2012-04-01 07:58:59 -07:00
Santiago Pastorino
67b000ebd5 Remove not needed requires 2012-03-31 15:13:35 -03:00
Arun Agrawal
dab9638637 warning removed: `&' interpreted as argument prefix 2012-03-31 23:41:52 +05:30
Aaron Patterson
25f1d5da37 use tsort_each to avoid intermediary array 2012-03-30 20:14:08 -07:00
Ben Woosley
cec170b963 Define Paths::Root#[]= in terms of #add. 2012-03-29 02:55:04 -07:00
Ben Woosley
f7a39c848a Drop Paths::Root initializer check of #path as it isn't checked in the #path= or anywhere else 2012-03-29 02:53:25 -07:00
Ben Woosley
4977e14e1b Drop unnecessary require in Rails::Paths 2012-03-29 01:21:28 -07:00
Michael de Silva
77088196e9 clarification to prevent confusing newbies; Passenger/Unicorn are app servers, Apache/Nginx are the web servers along with thin a la Heroku etc. 2012-03-28 23:06:52 +04:00
Santiago Pastorino
9897b9a689 Merge pull request #5630 from andhapp/fix-config-asset-manifest
Changed the config.assets.manifest to nil
2012-03-28 07:45:39 -07:00
Anuj Dutta
77fedae3ce Changed the config.assets.manifest to nil in the comments in the production config template. 2012-03-28 06:48:54 +00:00
Franck Verrot
4882271f6b Rails.initialized? can be called at any time without raising an exception [Closes #2507]
Changes:

* `Rails.initialized=` has been removed
* `Rails.initialized?` and `Rails.application.initialized?` are now
* delegating to `MyApp::Application.initialized?`
2012-03-28 00:42:59 +02:00
Aaron Patterson
bca7770e6c favor composition over inheritance 2012-03-26 17:56:44 -07:00
Aaron Patterson
4946107925 favor composition over inheritance 2012-03-26 17:25:44 -07:00
Aaron Patterson
a2a861fcec still need to ensure the path is a directory 2012-03-26 16:08:33 -07:00
Aaron Patterson
33da24a8db eliminating a branch we do not need. thanks @jeremy 2012-03-26 16:07:28 -07:00
Aaron Patterson
47db156d42 stop using *args in order to simplify our constructor 2012-03-26 15:58:25 -07:00
Aaron Patterson
045197f40e Don't depend on ivars. Thanks @fesplugas 2012-03-26 13:50:50 -07:00
Pete Higgins
68926dd5ee Remove useless conditional. 2012-03-25 18:20:40 -07:00
Vijay Dev
014498e1d7 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/ruby_on_rails_guides_guidelines.textile
2012-03-24 17:15:10 +05:30
Aaron Patterson
7422f44364 chdir before globbing so that we don't need to escape directory names.
fixes #5521
2012-03-23 11:47:42 -07:00
Aaron Patterson
e944b296a9 Merge pull request #5550 from schneems/schneems/server_env
Fix environment support for rails server, and match interface of rails console
2012-03-23 10:36:16 -07:00
schneems
7529283732 match rails console environment support, to server
rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
2012-03-22 13:13:12 -04:00
Anton Lindqvist
c5f4b20275 Fixed missing space bug introduces in rails/rails@9299bfdcd3. 2012-03-22 12:25:28 +01:00
Marcelo Silveira
86d1dfb821 Avoid another blank line in generated migration and remove assertion as per @spastorino request 2012-03-21 19:28:34 -03:00
José Valim
14b2cf6a0a Merge pull request #5532 from mhfs/migration_blank_line
Remove blank line from generated migration
2012-03-21 00:34:38 -07:00
Travis Jeffery
b2a59388b2 Generate Migration Thats Adds Removed Index
When generating a migration that removes a field with an index, the down
will add both the field and its index.
2012-03-21 01:20:35 +00:00
schneems
0a555dd421 fix rails server support of RAILS_ENV variable
When launching rails server from the command line with a rails environment specified such as `rails server RAILS_ENV=production` an error would occur since rails will try to use `RAILS_ENV=production` as it's server. 

When launching rails with a specified server such as thin `rails server thin RAILS_ENV=production` no error will be thrown, but rails will not start up in the specified environment.

This fixes both of those cases
2012-03-20 20:58:50 -04:00
Marcelo Silveira
c63306b1a8 Remove blank line from generated migration 2012-03-20 21:44:45 -03:00
Ivan Vanderbyl
5c1109a68e Added a generator option to remove the public/index.html file when generating a new Rails application
The option is:
-i, [--skip-index-html]        # Skip public/index.html file
2012-03-21 13:19:14 +13:00
Jesse Brown
b3d4799369 Adding comma to correct syntax in comment. 2012-03-19 15:34:26 -07:00
Piotr Sarnacki
d3bbb23b2f Merge pull request #5492 from arunagw/build_fix_app_generator_test
Build fix for app_generator_test.rb
2012-03-18 04:58:41 -07:00
Arun Agrawal
62e0337db1 Build fix for app_generator_test.rb 2012-03-18 10:24:18 +05:30
Aaron Patterson
2b5cb1cd41 Merge pull request #5486 from kennyj/fix_5435
Fix GH #5435. db:structure:dump should be re-enable.
2012-03-17 21:50:37 -07:00
Piotr Sarnacki
c513ae36e0 Rubyracer does not work on ruby, so add it to Gemfile with :ruby platform only 2012-03-17 23:32:03 +01:00
Rafael Mendonça França
da5a47e7b9 Update the guides and CHANGELOG 2012-03-17 13:44:56 -03:00
Rafael Mendonça França
9ec63eb049 Rack::SSL -> ActionDispatch::SSL 2012-03-17 13:36:35 -03:00
Xavier Noria
6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00
Vijay Dev
9d06b49913 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	railties/guides/source/getting_started.textile
2012-03-17 20:30:08 +05:30
Egor Homakov
bf94f1cab7 using pluck 2012-03-17 07:05:38 +01:00
kennyj
0360b3eb1f Fix GH #5435. db:structure:dump should be reenable. 2012-03-17 13:57:10 +09:00
Mike Mulvaney
f820098f9e Moved squawk method into LocalInstanceMethods module, so it would
not be added to every ActiveRecord::Base object.  Changed acts_as_yaffle
so it will include the LocalInstanceMethods module.  Now only
models that call acts_as_yaffle will get the squawk method, instead
of pushing them into every ActiveRecord::Base.
2012-03-16 15:53:16 -04:00
Mike Mulvaney
2dd486ceb5 Changed unit tests so they refer to yaffle_test_field as symbol.
acts_as_yaffle expects a symbol, so the string was causing the tests
to always fail.
2012-03-16 15:50:53 -04:00
Carlos Antonio da Silva
a1c77e7d94 Add missing quotes on AS::Notifications examples 2012-03-15 09:41:28 -03:00
adman65
18e1b5b8c5 [ci skip] Add examples of subscribing & creating ActiveSupport::Notifications 2012-03-15 10:27:04 +01:00
adman65
2784e6433b [ci skip] Add examples to instrumentation guide 2012-03-15 10:08:16 +01:00
José Valim
fbc9d0f44f Simplify helpers handling. Ensure Metal can run AC hooks. 2012-03-15 08:48:38 +01:00
Ryan Bigg
b5e2518ddb [getting started] [ci skip] Fix incongruant use of 'we' and 'you'. Expand upon creating posts section 2012-03-14 23:47:39 -07:00
Ryan Bigg
9c3d0029e5 [getting started] Round out 'Laying down the ground work' section 2012-03-14 19:32:13 -07:00
Ryan Bigg
7ea1755998 [getting started] rename initial 'meat' section of guide to 'Laying down the ground work'
This section involves a medium amount of setup and explanation (for the end user's own good!). It's not really about creating a post... that's for the *next* section
2012-03-14 19:31:52 -07:00
Ryan Bigg
507dba67c4 [getting started] correct typo in welcome/index.html.erb template path 2012-03-14 19:30:57 -07:00
Ryan Bigg
75aa3dccb3 [getting started] Improve explanation around initial controller generator usage 2012-03-14 18:51:48 -07:00
Ryan Bigg
605f4267bc [getting started] remove indentation for get 'posts/new' 2012-03-14 18:49:52 -07:00
José Valim
e1824c5991 Remove remaining http_only? calls. 2012-03-14 22:58:32 +01:00
Ryan Bigg
7dabf57f9e [getting started] Reworking beginnings of the 'meat' of the guide
This guide will now create the new action first, then the create action and so on and so forth until the controller has all seven RESTful actions.

We are doing this to demonstrate to a user how to *properly* build a controller. We do not mention scaffold *ON PURPOSE*. Scaffold is evil. We want to show the users the different facets of creating a resource, and this is how we're going to do it.
2012-03-14 14:34:50 -07:00
Ryan Bigg
35e0cb51f8 [getting started] Default root route in config/routes.rb is for a welcome controller. Let's make it easy by creating a WelcomeController, not a HomeController, in the guide 2012-03-14 14:33:16 -07:00
Ryan Bigg
66e5e7136d [getting started] add warning that guide is being worked on (just for edge) 2012-03-14 14:32:31 -07:00
José Valim
6db930cb5b Remove --http. 2012-03-14 22:30:01 +01:00
Ryan Bigg
c71b9612c0 [getting started] Link to Bundler website when explaining Gemfile[.lock] 2012-03-14 12:02:52 -07:00
Ryan Bigg
4c1861f427 [getting started] Improve prose for initial routing section 2012-03-14 12:00:54 -07:00
Ryan Bigg
f7a3771744 [getting started] mention generators early on, when rails new is mentioned.
This is to show one of the 'wins' of Rails nice and early. More are demonstrated as we flow through the guide.
2012-03-14 12:00:32 -07:00
Ryan Bigg
329db6ff6c [getting started] briefly explain what a controller and view are 2012-03-14 11:51:29 -07:00
Ryan Bigg
7b2bd23b29 [getting started] more line lengthening 2012-03-14 11:45:16 -07:00
Ryan Bigg
58bf4c45ec [getting started] fix lines that are too short.
This should be a configuration setting on your text editor, rather than hard-coded into the guide
2012-03-14 11:34:37 -07:00
Ryan Bigg
5013f51348 [getting started] update Rails version to 3.2.2 2012-03-14 11:34:37 -07:00
Ryan Bigg
5cbdd0f667 [getting started] *THE* way to install Rails is by running +gem install+. You should not run this as the root user. 2012-03-14 11:34:37 -07:00
Ryan Bigg
2f06c94e38 [getting started] Remove super-early mention of REST from Getting Started guide.
We will mention this as we introduce the routing components for Rails later on in the guide.
2012-03-14 11:34:37 -07:00
Ryan Bigg
dcfb990e1b Move database configuration section from Getting Started Guide into Configuration guide
This is because newbies don't need to know immediately all the different ways of configuring a database on Rails. The default is SQLite3 which'll work on most operating systems by default. The only reason for it to *not* work is due to missing packages on the operating system, which should be taken care of in some sort of 'Installing Rails for <Operating System> guide.
2012-03-14 11:34:36 -07:00
Carlos Antonio da Silva
2963ee6b4b Fix scaffold controller template, ensure rake scaffold test pass by default 2012-03-14 14:47:20 -03:00
José Valim
da07433578 Update railties/guides/source/api_app.textile 2012-03-14 16:53:43 +01:00
Carlos Antonio da Silva
96aea58f22 Do not generate app/views and sprockets entries on http app
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:25 -03:00
Carlos Antonio da Silva
570cc89bad Generate special controller and functional test templates for http apps
The main goal is to not generate the format.html block in scaffold
controller, and to generate a different functional test as we don't rely
on redirects anymore, we should test for http responses.

In addition to that, the :edit action is removed from the http
controller and the edit route is not generated by default, as they
usually do not make sense in this scenario.

[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:25 -03:00
Carlos Antonio da Silva
3e138df977 Rename http-only app generator option to http
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
2c0f6b0d8a Move http only option to AppGenerator
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
7f3847cc14 Add test to ensure setting config.generators.http_only actually disables the generator options
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
ff8e9e07b4 Allow generator configs from http_only! to be overriden by app
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
2b355757d5 Remove duplicated tests from shared generator
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
858a30e571 Refactor http_only, remove reader method
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
219ff43639 Disable template, helper and assets options when using http_only!
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
c825e9a5ea Create generators http_only! setup and hide some common namespaces for now
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:24 -03:00
Carlos Antonio da Silva
124838b508 Generate middleware http_only! config when running http only app generator
[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:23 -03:00
Carlos Antonio da Silva
5c8c7ca2f9 Add http-only option to Rails app generator
Change application controller template accordingly, to inherit from
ActionController::HTTP and not generate protect_from_forgery call.

[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:23 -03:00
Santiago Pastorino
4c16791f35 Add ActionController::HTTP
More info http://edgeguides.rubyonrails.org/api_app.html

[Carlos Antonio da Silva & Santiago Pastorino]
2012-03-14 12:46:23 -03:00
Rafael Mendonça França
1ced5ca67b Remove key_value helper now that master is 1.9 only and we always use
the 1.9 hash syntax in the generators.
2012-03-13 23:10:32 -03:00
José Valim
ec22a2b813 Update API guide with latest decisions. 2012-03-14 00:30:42 +01:00