public
Description: Chris Pine's tutorial "Learn to Program" translated to portuguese by a team of volunteers. Coordinated by Fábio 'akitaonrails' Akita (http://www.akitaonrails.com).
Homepage: http://aprendaaprogramar.rubyonrails.pro.br
Clone URL: git://github.com/jmonteiro/aprendaaprogramar.git
Search Repo:
Refactoring the modules

git-svn-id: http://opensvn.csie.org/learn_to_program_pt_br/trunk@70 
c24ce081-ecdb-4f3f-a214-8159a4f5ee6c
akitaonrails (author)
Sat Jan 12 15:42:51 -0800 2008
commit  db7f9f0aeb2a5d0a62bc7a94ad34ac34a0e1d7d4
tree    af4a21f1a9a3e9894c7ec0f95508933d3db7735a
parent  592166ff93daa43728606e02a5f49461efef4974
  • app/controllers/learn_controller.rb
  • config/environment.rb
  • learn_to_program_tutorial.rb
  • learn_to_program_tutorial/arrays.rb
  • learn_to_program_tutorial/beyond.rb
  • learn_to_program_tutorial/blocks_procs.rb
  • learn_to_program_tutorial/classes.rb
  • learn_to_program_tutorial/conversion.rb
  • learn_to_program_tutorial/def_methods.rb
  • learn_to_program_tutorial/flow_control.rb
  • learn_to_program_tutorial/formatting_page.rb
  • learn_to_program_tutorial/learn_to_program.rb
  • learn_to_program_tutorial/letters.rb
  • learn_to_program_tutorial/main.rb
  • learn_to_program_tutorial/menu.rb
  • learn_to_program_tutorial/methods.rb
  • learn_to_program_tutorial/numbers.rb
  • learn_to_program_tutorial/setup.rb
  • learn_to_program_tutorial/variables.rb
  • lib/learn_to_program_tutorial.rb
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ class LearnController < ApplicationController
0
   def index
0
     # captura a saída
0
     request.cgi.instance_eval do
0
- def out(options = 'text/plain')
0
+ def out(options = 'text/plain', optional = true)
0
         yield if block_given?
0
       end
0
     end
...
26
27
28
29
 
30
31
32
...
26
27
28
 
29
30
31
32
0
@@ -26,7 +26,7 @@ Rails::Initializer.run do |config|
0
   # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
0
 
0
   # Add additional load paths for your own custom dirs
0
- config.load_paths += %W( #{RAILS_ROOT}/learn_to_program_tutorial )
0
+ config.load_paths += %W( #{RAILS_ROOT}/lib/learn_to_program_tutorial )
0
 
0
   # Force all environments to use the same logger level
0
   # (by default production uses :info, the others :debug)

Comments

    No one has commented yet.