Arun Agrawal
2b046e7c39
fix test when running Jruby. If Jruby Platform is available the gem will change.
2011-06-29 02:41:52 +05:30
José Valim
71d7c52019
Update railties.gemspec
2011-06-28 09:35:46 -03:00
José Valim
e3053ee753
Copy the bin to railties so it also works if you don't have the rails gem.
2011-06-28 09:09:46 -03:00
Ryan Bigg
6a1803a14f
[asset pipeline] Add production assets section
2011-06-28 08:25:14 +10:00
Ryan Bigg
9959fa2d15
[asset pipeline] Add examples of javascript_include_tag and stylesheet_link_tag
2011-06-28 08:24:59 +10:00
Ryan Bigg
703b00947d
[Asset pipeline] Move external assets section down to 'Adding assets to your gems' section
2011-06-28 08:22:38 +10:00
Ryan Bigg
49bb053b17
[asset pipeline] production assets covered later in the guide
2011-06-28 08:15:41 +10:00
Ryan Bigg
87a709846e
[asset pipeline] sections at the bottom of the asset pipeline guide should all be toplevel
2011-06-28 08:15:04 +10:00
Ryan Bigg
fb7ea76c1b
[asset pipeline] Mention that hashed files are also picked up by Sprockets
2011-06-28 08:09:04 +10:00
Ryan Bigg
22b508d961
[asset pipeline] Cascade -> Cascading
2011-06-28 07:55:14 +10:00
Vijay Dev
adf334853f
fix javascript case
2011-06-28 02:16:56 +05:30
Chris Eppstein
266b80c7b2
OrderedOptions must implement respond_to? if it implements method_missing.
2011-06-27 13:44:53 -07:00
David Heinemeier Hansson
f63f0baa59
Add JavaScript Runtime name to the Rails Info properties (thanks Sam Ruby)
2011-06-27 11:59:46 +02:00
David Heinemeier Hansson
449cc3e999
Merge pull request #1481 from arunagw/lib_assets
...
Generating /lib/assets for assets
2011-06-27 02:16:24 -07:00
Vijay Dev
732690589e
minor changes
2011-06-27 00:12:39 +05:30
Vijay Dev
798aa881af
minor indentation fixes on a6293ff
2011-06-26 17:06:19 +05:30
Ryan Bigg
5f5feb27b6
Update changelog for querying guide
2011-06-26 15:54:12 +10:00
Ryan Bigg
a6293ff259
Querying guide: add mention of scoped, unscoped and default_scope to querying guide
2011-06-26 15:41:11 +10:00
Ryan Bigg
1b089a083f
Refer to sprockets + jammit as libraries, not gems
2011-06-26 15:41:11 +10:00
Vijay Dev
5a79ca660a
fix typo in method name
2011-06-25 18:47:51 +05:30
Vijay Dev
2332aa6e18
Revert "add missing methods supported by reversible migrations using the change method"
...
This reverts commit 7f91eebae361f2f3a1558f6d899b372524509a2d.
Reason: Incorrect documenting. The newly added methods to the list are
not actually supported by reversible migrations.
2011-06-25 18:45:41 +05:30
Xavier Noria
370b380306
Merge pull request #1648 from dlee/acronyms
...
Inflector support for acronyms (Issue #1366 )
2011-06-24 14:19:42 -07:00
Mohammad Typaldos
837a74bc0f
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-24 06:33:59 -07:00
Vijay Dev
7f91eebae3
add missing methods supported by reversible migrations using the change method
2011-06-24 12:31:14 +05:30
Alberto Perdomo
f1d77bad26
Action Mailer Basics Guide: Added example on using mail(:template_path => ..., :template_name => ...) to specify custom template files.
2011-06-23 17:57:48 +01:00
Xavier Noria
1f505a8ef2
Merge branch 'master' of git://github.com/lifo/docrails
2011-06-23 18:08:11 +02:00
Mikhail Dieterle
06fe01a337
updated rspec link
2011-06-23 03:08:32 -07:00
Santiago Pastorino
22e86c10d8
fixtures :all is already included in test_helper.rb
2011-06-23 00:35:25 -03:00
José Valim
16894982e3
Update CHANGELOG.
2011-06-22 12:52:46 -03:00
Vijay Dev
95f827f910
font style changes in perf guide
2011-06-22 19:40:51 +05:30
Mikhail Dieterle
98623a061e
Fixed typo
2011-06-22 03:04:28 -07:00
Arun Agrawal
3534ea8d50
Tests added when no option is given with #jruby. It should generate
...
sqlite3 based app
2011-06-22 08:43:34 +05:30
Arun Agrawal
b2a19ad90b
Making tests according to the changes #jruby
2011-06-22 08:15:12 +05:30
Arun Agrawal
b7bce739b1
Test added for jdbc-adapter
2011-06-22 08:04:18 +05:30
Nick Sieger
a85b9fafd1
Use non-'jdbc*' names so that db:create and db:drop work
2011-06-21 13:34:10 -07:00
Nick Sieger
4dd2d07d4a
Convert database names to ones appropriate for JRuby
2011-06-21 13:34:07 -07:00
Nick Sieger
f12f756473
Add generic 'jdbc' database option
2011-06-21 13:34:03 -07:00
Nick Sieger
2b0b7260c7
Remove superfluous pg driver install instructions
2011-06-21 13:34:01 -07:00
James A. Rosen
7ca14ea398
Railties: added tests for rake assets:clean
2011-06-21 09:51:18 -07:00
James A. Rosen
d26cf14605
rake assets:clean also removes directories
...
See https://github.com/rails/rails/pull/1776#issuecomment-1402894 ,
2df2bfdb4b1165dce4b5bc3fe046147d793fead4, and
7440a254c4e724a5bbf6a0f4c8edb6d8d0432433.
2011-06-21 09:24:03 -07:00
José Valim
5a26b88645
Create an :assets group in the Gemfile.
...
This group is required by default only on development and test
(you can change it on config/application.rb).
`rake assets:precompile` will automatically add the assets group
to Rails.groups (and consequently Bundler.require) and should work
transparently.
2011-06-21 11:24:06 -03:00
José Valim
a803aec00d
Add Rails.groups to encapsulate available groups for require.
2011-06-21 11:24:05 -03:00
Mohammad Typaldos
c01c954c20
Added Gzip to Asset Pipeline via GitHub
2011-06-21 04:23:35 -07:00
Mohammad Typaldos
fcebf9fd93
Sprockets itself doesn't compress
2011-06-20 23:29:39 -07:00
Mohammad Typaldos
2d4d9f1937
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-20 23:23:55 -07:00
Alexey Gaziev
91bbb8e956
Removed tests for rescue branch for Rails 2.x compatibility
2011-06-20 22:29:30 +04:00
Alexey Gaziev
78cd3f9ec2
Removed rescue branch for Rails 2.x compatibility
2011-06-20 20:13:52 +04:00
Alexey Gaziev
ca044113f3
Fix regexp in generators for right catching error message
2011-06-20 19:54:37 +04:00
José Valim
89b3293a54
Merge pull request #1784 from gazay/3-1-stable-shadowing-variables
...
Removing shadowing outer local variables warnings
2011-06-20 06:48:17 -07:00
Alexey Gaziev
87329ef67f
Removed warnings about shadowing variables
2011-06-20 17:22:09 +04:00
Arun Agrawal
d3b7f4912b
Closing </yaml>
2011-06-20 15:24:41 +05:30
James A. Rosen
7440a254c4
assets:clean task now cleans up images
2011-06-19 18:40:17 -07:00
Vijay Dev
5eac40bb75
document Active Record's reverse_order method
2011-06-20 02:12:21 +05:30
Vijay Dev
9513474e5e
AR: use where in place of find
2011-06-20 01:42:43 +05:30
Vijay Dev
d1b448ed3f
minor changes in getting started guide
2011-06-20 01:24:04 +05:30
Vijay Dev
427b07baa1
document the instance_reader option for class_attribute
2011-06-20 00:36:52 +05:30
Mohammad Typaldos
8d64aafa98
Consistency issues with pre-processor
2011-06-18 15:13:41 -07:00
Mohammad Typaldos
04daede85d
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-18 11:57:15 -07:00
Mohammad Typaldos
8bb7c86396
Let the reader know what JS and CSS stand for. Slight rewording as well.
2011-06-18 11:48:00 -07:00
Vijay Dev
5225227110
edit assets guide for cases & minor wording changes
2011-06-18 22:19:32 +05:30
Mohammad Typaldos
618802df71
Sprockets itself doesn't do this, it's uglifier and other gems, Sprockets is just the puppet master.
2011-06-18 09:00:13 -07:00
Mohammad Typaldos
4a36817b5d
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-18 08:58:38 -07:00
Scott Stewart
a637e1dcb1
Fixed typo in asset_pipeline, jquery_rails should be jquery-rails
2011-06-18 06:40:27 -07:00
Scott Stewart
0a45e24879
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-18 06:31:22 -07:00
Leonard Garvey
38aa153f9e
Merge github.com:lifo/docrails
2011-06-18 21:20:19 +10:00
Leonard Garvey
fb9bfc2430
Fixed a typo in asset pipeline
2011-06-18 21:15:49 +10:00
Ryan Bigg
4f301b2540
Fix indentation on manifest examples in assets guide
2011-06-18 21:11:15 +10:00
Ryan Bigg
d746aea6f9
File needs to be at public/assets, not public/images
2011-06-18 21:10:21 +10:00
Ryan Bigg
c8f046bd45
Flesh out the asset pipeline guide with information learned from today's research
2011-06-18 19:45:31 +10:00
Xavier Noria
20d7d2415f
copy-edits 7c2db6c, cbf2af1, and f391f94
2011-06-18 10:22:34 +02:00
Xavier Noria
146ec2d1df
Merge branch 'master' of git://github.com/lifo/docrails
2011-06-18 10:11:47 +02:00
Ryan Bigg
0fd52bb6c7
Added 'Configuring Assets' section to configuring guide
2011-06-18 11:16:10 +10:00
José Valim
08983fefd5
Attributes on scaffold and model generators default to string.
...
This allows the following: "rails g scaffold Post title body:text author"
2011-06-17 15:10:53 -03:00
Xavier Noria
248552e324
AS guide: expands safe string docs regarding destructive methods, coercion, copying, etc.
2011-06-17 10:57:33 +02:00
Joseph Wong
29dfe05e07
Patch for #1458 - [3.1.0.rc1] App plugins initialized before engines
...
and plugins inside engines
It seems that plugins inside a Rails 3.1 application proper (i.e. in
/vendor/plugins) are initialized before engines and plugins inside
engines.
After some debugging, I found the culprit in
Rails::Application::Railties#all:
def all(&block)
@all ||= railties + engines + super
@all.each(&block) if block
@all
end
The call to super here implicitly passes the &block argument, which
has the unfortunate side-effect of adding the plugin initializers
first (in front of other railties and engines) in the case of
Rails::Engine#initializers:
def initializers
initializers = []
railties.all { |r| initializers += r.initializers }
initializers += super
initializers
end
The solution here is to replace the super call with a call
to #plugins.
2011-06-16 13:24:33 -07:00
wycats
1844572fd1
Make the API for compression consistent between JS and CSS. By default, users just need to say whether they want compression or not, and a default will be chosen by a Railtie. In the case of CSS, this default is already chosen by the sass-rails gem.
...
Users can still explicitly choose a compressor in their application.rb if they have a preference, but will usually want to let plugins choose defaults in their Railties.
2011-06-16 12:09:36 -07:00
José Valim
b9fa32c75e
Merge pull request #1733 from SAP-Oxygen/master-plugins_in_engine_patch
...
Cherry-picking patch for https://github.com/rails/rails/issues/1460 from 3-1-stable to master
2011-06-16 11:03:58 -07:00
Joseph Wong
245dba0c89
Cherry-picking patch for https://github.com/rails/rails/issues/1460
...
from 3-1-stable to master
[3.1.0.rc1] Plugins inside engines not eager-loaded properly and their
rake tasks ignored
Working with the new support for plugins inside engines in Rails 3.1,
I found that certain things that work for regular plugins don't work
for these new nested plugins. In particular, these methods in
Rails::Engine don't seem to understand that an engine could have
nested plugins:
#load_tasks
#load_generators
#load_console
#eager_load!
A solution which worked out for me is to move the calls to
railties.all { ... } from the overriding methods in Rails::Application
into Rails::Engine.
2011-06-16 10:52:05 -07:00
Vijay Dev
07d62ff719
minor clean up generators section
2011-06-16 22:49:06 +05:30
Vijay Dev
7c2db6ce37
add info that plugin installs need git or svn installed
2011-06-16 22:49:06 +05:30
Vijay Dev
d92ad224e0
replace dev.ror.com plugin url with a dummy one
2011-06-16 21:28:42 +05:30
Arun Agrawal
13f8b28cdf
Using lib/assets only. Javascripts/Stylesheets people can fill later.
2011-06-16 19:07:07 +05:30
Vijay Dev
bfb022adae
document doc:* rake tasks
2011-06-16 12:29:47 +05:30
Wen-Tien Chang
adbe7daab6
Improve the legacy wild controller route in app templates
2011-06-16 13:36:42 +08:00
JudeAr
cbf2af1e81
typo changes fixed
2011-06-15 22:15:53 -07:00
JudeAr
0dd9db871d
fixed typo chnages
2011-06-15 22:04:20 -07:00
José Valim
6c3e80af68
load_generators from engine should also handle self automatically.
2011-06-15 15:53:58 -03:00
Vijay Dev
406d61ee8c
add details on how to use specific annotations in rake:notes
2011-06-15 23:26:19 +05:30
Vijay Dev
3e44159650
document how rake notes work
2011-06-15 22:53:57 +05:30
thoefer
6d96535524
Updated rails´s guides on the config.serve_static_assets and it´s settings in production mode using WEBrick. This documentation has it´s roots in #issue1657. You have to set config.serve_static_assets to true in production mode with WEBrick as only this includes ActionDispatch::Static.
2011-06-15 12:14:17 +02:00
Vijay Dev
045d9d2bae
minor copy edit 0bdeddb
2011-06-15 11:44:31 +05:30
Arun Agrawal
0bdeddb97e
Jruby => JRuby, Mysql => MySQL
2011-06-15 10:45:05 +05:30
Arun Agrawal
57ace9868a
Moving hint down. As required after all database examples.
2011-06-15 07:40:49 +05:30
Arun Agrawal
8f05a2f7ae
Using "Finally" at the end of database section.
2011-06-15 07:39:24 +05:30
Arun Agrawal
900dbca965
Added Doc for Postgresql database with Jruby Platform. #jruby
2011-06-15 07:38:08 +05:30
Arun Agrawal
aed85375ca
Added doc for Mysql database with Jruby platform #jruby
2011-06-15 07:36:52 +05:30
Arun Agrawal
d5b1cf592b
Adding doc for Sqlite3 database for Jruby platform #jruby
2011-06-15 07:36:04 +05:30
Sebastian Martinez
0c1e630d18
Prefer Time.current over Time.now on example code
2011-06-14 11:01:00 -03:00
Sebastian Martinez
10c2035084
Add Time#all_* to AS guides.
2011-06-14 10:53:38 -03:00
Vijay Dev
9db268db65
fix minor errors in nested model guide
2011-06-14 00:30:13 +05:30