public
Fork of rails/rails
Description: Ruby on Rails - forked for implementing I18n patch
Homepage: http://rubyonrails.org
Clone URL: git://github.com/svenfuchs/rails.git
Make all ActionView helpers available in the console for debugging 
purposes.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4008 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Marcel Molina (author)
Tue Mar 21 12:07:41 -0800 2006
commit  564879dfe08129952670d74ecf49ec6223b66650
tree    17e75ff504d53ab55fcba14462016ec18172f6f4
parent  6fbf40823851c9f99c86c1287af0cfca725776e0
...
1
2
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -1,5 +1,15 @@
0
 *SVN*
0
 
0
+* Make all ActionView helpers available in the console for debugging purposes. n.b.: Only an 80% solution. Some stuff won't work, most will. [Marcel Molina Jr.]
0
+
0
+ ex.
0
+
0
+ >> puts options_for_select([%w(a 1), %w(b 2), %w(c 3)])
0
+ <option value="1">a</option>
0
+ <option value="2">b</option>
0
+ <option value="3">c</option>
0
+ => nil
0
+
0
 * Replaced old session rake tasks with db:sessions:create to generate a migration, and db:sessions:clear to remove sessions. [Rick Olson]
0
 
0
 * Reject Ruby 1.8.3 when loading Rails; extract version checking code. [Chad Fowler]
...
13
14
15
 
16
17
18
...
13
14
15
16
17
18
19
0
@@ -13,6 +13,7 @@ libs = " -r irb/completion"
0
 libs << " -r #{RAILS_ROOT}/config/environment"
0
 libs << " -r console_app"
0
 libs << " -r console_sandbox" if options[:sandbox]
0
+libs << " -r console_with_helpers"
0
 
0
 ENV['RAILS_ENV'] = ARGV.first || ENV['RAILS_ENV'] || 'development'
0
 if options[:sandbox]

Comments

    No one has commented yet.