From 50be5f039b310b61991c5e1de2b52c32564227b3 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 2 Sep 2009 20:47:15 +0200 Subject: fixes generation of index and credits page --- railties/guides/rails_guides/generator.rb | 6 +- railties/guides/source/credits.erb.textile | 52 ------------ railties/guides/source/credits.textile.erb | 52 ++++++++++++ railties/guides/source/index.erb.textile | 124 ----------------------------- railties/guides/source/index.textile.erb | 124 +++++++++++++++++++++++++++++ 5 files changed, 179 insertions(+), 179 deletions(-) delete mode 100644 railties/guides/source/credits.erb.textile create mode 100644 railties/guides/source/credits.textile.erb delete mode 100644 railties/guides/source/index.erb.textile create mode 100644 railties/guides/source/index.textile.erb (limited to 'railties/guides') diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index a9467cdf80..341f570251 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -18,7 +18,7 @@ module RailsGuides end def generate - guides = Dir.entries(view_path).find_all {|g| g =~ /textile$/ } + guides = Dir.entries(view_path).find_all {|g| g =~ /\.textile(?:\.erb)?$/ } if ENV["ONLY"] only = ENV["ONLY"].split(",").map{|x| x.strip }.map {|o| "#{o}.textile" } @@ -36,7 +36,7 @@ module RailsGuides end def generate_guide(guide) - guide =~ /(.*?)(\.erb)?\.textile/ + guide =~ /(.*?)\.textile(?:\.erb)?$/ name = $1 puts "Generating #{name}" @@ -46,7 +46,7 @@ module RailsGuides @view = ActionView::Base.new(view_path) @view.extend(Helpers) - if guide =~ /\.erb\.textile/ + if guide =~ /\.textile\.erb$/ # Generate the erb pages with textile formatting - e.g. index/authors result = view.render(:layout => 'layout', :file => guide) f.write textile(result) diff --git a/railties/guides/source/credits.erb.textile b/railties/guides/source/credits.erb.textile deleted file mode 100644 index 49e390908f..0000000000 --- a/railties/guides/source/credits.erb.textile +++ /dev/null @@ -1,52 +0,0 @@ -<% content_for :header_section do %> -h2. Credits - -p. We'd like to thank the following people for their tireless contributions to this project. - -<% end %> - -

Rails Documentation Team

- -<% author('Mike Gunderloy', 'mgunderloy') do %> - Mike Gunderloy is a consultant with "ActionRails":http://www.actionrails.com. He brings 25 years of experience in a variety of languages to bear on his current work with Rails. His near-daily links and other blogging can be found at "A Fresh Cup":http://afreshcup.com and he "twitters":http://twitter.com/MikeG1 too much. -<% end %> - -<% author('Pratik Naik', 'lifo') do %> - Pratik Naik is a Ruby on Rails consultant with "ActionRails":http://www.actionrails.com and also a member of the "Rails core team":http://rubyonrails.org/core. He maintains a blog at "has_many :bugs, :through => :rails":http://m.onkey.org and has an active "twitter account":http://twitter.com/lifo. -<% end %> - -<% author('Xavier Noria', 'fxn', 'fxn.png') do %> - Xavier has been into Rails since 2005, he is currently a Rails consultant. Xavier is president of the Spanish Ruby Users Group and has been involved in Rails in several ways. He enjoys combining his passion for Rails and his past life as a proofreader of math textbooks. Oh, he also "tweets":http://twitter.com/fxn! -<% end %> - -

Rails Guides Designers

- -<% author('Jason Zimdars', 'jz') do %> - Jason Zimdars is an experienced creative director and web designer who has lead UI and UX design for numerous websites and web applications. You can see more of his design and writing at Thinkcage.com or follow him on Twitter. -<% end %> - -

Rails Guides Authors

- -<% author('Frederick Cheung', 'fcheung') do %> - Frederick Cheung is Chief Wizard at Texperts where he has been using Rails since 2006. He is based in Cambridge (UK) and when not consuming fine ales he blogs at "spacevatican.org":http://www.spacevatican.org. -<% end %> - -<% author('Tore Darell', 'toretore') do %> - Tore Darell is an independent developer based in Menton, France who specialises in cruft-free web applications using Ruby, Rails and unobtrusive JavaScript. His home on the internet is his blog "Sneaky Abstractions":http://tore.darell.no. -<% end %> - -<% author('Jeff Dean', 'zilkey') do %> - Jeff Dean is a software engineer with "Pivotal Labs":http://pivotallabs.com. -<% end %> - -<% author('Cássio Marques', 'cmarques') do %> - Cássio Marques is a Brazilian software developer working with different programming languages such as Ruby, JavaScript, CPP and Java, as an independent consultant. He blogs at "/* CODIFICANDO */":http://cassiomarques.wordpress.com, which is mainly written in Portuguese, but will soon get a new section for posts with English translation. -<% end %> - -<% author('Emilio Tagua', 'miloops') do %> - Emilio Tagua -- a.k.a. miloops -- is an Argentinian entrepreneur, developer, open source contributor and Rails evangelist. Cofounder of "Eventioz":http://eventioz.com. He has been using Rails since 2006 and contributing since early 2008. Can be found at gmail, twitter, freenode, everywhere as miloops. -<% end %> - -<% author('Heiko Webers', 'hawe') do %> - Heiko Webers is the founder of "bauland42":http://www.bauland42.de, a German web application security consulting and development company focused on Ruby on Rails. He blogs at the "Ruby on Rails Security Project":http://www.rorsecurity.info. After 10 years of desktop application development, Heiko has rarely looked back. -<% end %> diff --git a/railties/guides/source/credits.textile.erb b/railties/guides/source/credits.textile.erb new file mode 100644 index 0000000000..49e390908f --- /dev/null +++ b/railties/guides/source/credits.textile.erb @@ -0,0 +1,52 @@ +<% content_for :header_section do %> +h2. Credits + +p. We'd like to thank the following people for their tireless contributions to this project. + +<% end %> + +

Rails Documentation Team

+ +<% author('Mike Gunderloy', 'mgunderloy') do %> + Mike Gunderloy is a consultant with "ActionRails":http://www.actionrails.com. He brings 25 years of experience in a variety of languages to bear on his current work with Rails. His near-daily links and other blogging can be found at "A Fresh Cup":http://afreshcup.com and he "twitters":http://twitter.com/MikeG1 too much. +<% end %> + +<% author('Pratik Naik', 'lifo') do %> + Pratik Naik is a Ruby on Rails consultant with "ActionRails":http://www.actionrails.com and also a member of the "Rails core team":http://rubyonrails.org/core. He maintains a blog at "has_many :bugs, :through => :rails":http://m.onkey.org and has an active "twitter account":http://twitter.com/lifo. +<% end %> + +<% author('Xavier Noria', 'fxn', 'fxn.png') do %> + Xavier has been into Rails since 2005, he is currently a Rails consultant. Xavier is president of the Spanish Ruby Users Group and has been involved in Rails in several ways. He enjoys combining his passion for Rails and his past life as a proofreader of math textbooks. Oh, he also "tweets":http://twitter.com/fxn! +<% end %> + +

Rails Guides Designers

+ +<% author('Jason Zimdars', 'jz') do %> + Jason Zimdars is an experienced creative director and web designer who has lead UI and UX design for numerous websites and web applications. You can see more of his design and writing at Thinkcage.com or follow him on Twitter. +<% end %> + +

Rails Guides Authors

+ +<% author('Frederick Cheung', 'fcheung') do %> + Frederick Cheung is Chief Wizard at Texperts where he has been using Rails since 2006. He is based in Cambridge (UK) and when not consuming fine ales he blogs at "spacevatican.org":http://www.spacevatican.org. +<% end %> + +<% author('Tore Darell', 'toretore') do %> + Tore Darell is an independent developer based in Menton, France who specialises in cruft-free web applications using Ruby, Rails and unobtrusive JavaScript. His home on the internet is his blog "Sneaky Abstractions":http://tore.darell.no. +<% end %> + +<% author('Jeff Dean', 'zilkey') do %> + Jeff Dean is a software engineer with "Pivotal Labs":http://pivotallabs.com. +<% end %> + +<% author('Cássio Marques', 'cmarques') do %> + Cássio Marques is a Brazilian software developer working with different programming languages such as Ruby, JavaScript, CPP and Java, as an independent consultant. He blogs at "/* CODIFICANDO */":http://cassiomarques.wordpress.com, which is mainly written in Portuguese, but will soon get a new section for posts with English translation. +<% end %> + +<% author('Emilio Tagua', 'miloops') do %> + Emilio Tagua -- a.k.a. miloops -- is an Argentinian entrepreneur, developer, open source contributor and Rails evangelist. Cofounder of "Eventioz":http://eventioz.com. He has been using Rails since 2006 and contributing since early 2008. Can be found at gmail, twitter, freenode, everywhere as miloops. +<% end %> + +<% author('Heiko Webers', 'hawe') do %> + Heiko Webers is the founder of "bauland42":http://www.bauland42.de, a German web application security consulting and development company focused on Ruby on Rails. He blogs at the "Ruby on Rails Security Project":http://www.rorsecurity.info. After 10 years of desktop application development, Heiko has rarely looked back. +<% end %> diff --git a/railties/guides/source/index.erb.textile b/railties/guides/source/index.erb.textile deleted file mode 100644 index 851d91da2f..0000000000 --- a/railties/guides/source/index.erb.textile +++ /dev/null @@ -1,124 +0,0 @@ -<% content_for :header_section do %> -h2. Ruby on Rails Guides - -These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together. There are two different versions of the Guides site, and you should be sure to use the one that applies to your situation: - -* "Current Release version":http://guides.rubyonrails.org - based on Rails 2.3 -* "Edge version":http://guides.rails.info - based on the current Rails "master branch":http://github.com/rails/rails/tree/master - -<% end %> - -<% content_for :index_section do %> -
-
-
Rails Guides are a result of the ongoing "Guides hackfest":http://hackfest.rubyonrails.org and a work in progress.
-
Guides marked with this icon are currently being worked on. While they might still be useful to you, they may contain incomplete information and even errors. You can help by reviewing them and posting your comments and corrections at the respective Lighthouse ticket.
-
-
-<% end %> - -h3. Start Here - -
-<% guide('Getting Started with Rails', 'getting_started.html') do %> - Everything you need to know to install Rails and create your first application. -<% end %> -
- -h3. Models - -
-<% guide("Rails Database Migrations", 'migrations.html') do %> - This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner. -<% end %> - -<% guide("Active Record Validations and Callbacks", 'activerecord_validations_callbacks.html') do %> - This guide covers how you can use Active Record validations and callbacks. -<% end %> - -<% guide("Active Record Associations", 'association_basics.html') do %> - This guide covers all the associations provided by Active Record. -<% end %> - -<% guide("Active Record Query Interface", 'active_record_querying.html') do %> - This guide covers the database query interface provided by Active Record. -<% end %> -
- -h3. Views - -
-<% guide("Layouts and Rendering in Rails", 'layouts_and_rendering.html') do %> - This guide covers the basic layout features of Action Controller and Action View, including rendering and redirecting, using content_for blocks, and working with partials. -<% end %> - -<% guide("Action View Form Helpers", 'form_helpers.html', :ticket => 1) do %> - Guide to using built in Form helpers. -<% end %> -
- -h3. Controllers - -
-<% guide("Action Controller Overview", 'action_controller_overview.html') do %> - This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics. -<% end %> - -<% guide("Rails Routing from the Outside In", 'routing.html') do %> - This guide covers the user-facing features of Rails routing. If you want to understand how to use routing in your own Rails applications, start here. -<% end %> -
- -h3. Digging Deeper - -
- -<% guide("Rails on Rack", 'rails_on_rack.html') do %> - This guide covers Rails integration with Rack and interfacing with other Rack components. -<% end %> - -<% guide("Rails Internationalization API", 'i18n.html') do %> - This guide covers how to add internationalization to your applications. Your application will be able to translate content to different languages, change pluralization rules, use correct date formats for each country and so on. -<% end %> - -<% guide("Action Mailer Basics", 'action_mailer_basics.html', :ticket => 25) do %> - This guide describes how to use Action Mailer to send and receive emails. -<% end %> - -<% guide("Testing Rails Applications", 'testing.html', :ticket => 8) do %> - This is a rather comprehensive guide to doing both unit and functional tests in Rails. It covers everything from “What is a test?” to the testing APIs. Enjoy. -<% end %> - -<% guide("Securing Rails Applications", 'security.html') do %> - This guide describes common security problems in web applications and how to avoid them with Rails. -<% end %> - -<% guide("Debugging Rails Applications", 'debugging_rails_applications.html') do %> - This guide describes how to debug Rails applications. It covers the different ways of achieving this and how to understand what is happening "behind the scenes" of your code. -<% end %> - -<% guide("Performance Testing Rails Applications", 'performance_testing.html') do %> - This guide covers the various ways of performance testing a Ruby on Rails application. -<% end %> - -<% guide("The Basics of Creating Rails Plugins", 'plugins.html', :ticket => 32) do %> - This guide covers how to build a plugin to extend the functionality of Rails. -<% end %> - -<% guide("Configuring Rails Applications", 'configuring.html') do %> - This guide covers the basic configuration settings for a Rails application. -<% end %> - -<% guide("Rails Command Line Tools and Rake tasks", 'command_line.html', :ticket => 29) do %> - This guide covers the command line tools and rake tasks provided by Rails. -<% end %> - -<% guide("Caching with Rails", 'caching_with_rails.html', :ticket => 10) do %> - Various caching techniques provided by Rails. -<% end %> - -<% guide("Contributing to Rails", 'contributing_to_rails.html') do %> - Rails is not "somebody else's framework." This guide covers a variety of ways that you can get involved in the ongoing development of Rails. -<% end %> - -
diff --git a/railties/guides/source/index.textile.erb b/railties/guides/source/index.textile.erb new file mode 100644 index 0000000000..851d91da2f --- /dev/null +++ b/railties/guides/source/index.textile.erb @@ -0,0 +1,124 @@ +<% content_for :header_section do %> +h2. Ruby on Rails Guides + +These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together. There are two different versions of the Guides site, and you should be sure to use the one that applies to your situation: + +* "Current Release version":http://guides.rubyonrails.org - based on Rails 2.3 +* "Edge version":http://guides.rails.info - based on the current Rails "master branch":http://github.com/rails/rails/tree/master + +<% end %> + +<% content_for :index_section do %> +
+
+
Rails Guides are a result of the ongoing "Guides hackfest":http://hackfest.rubyonrails.org and a work in progress.
+
Guides marked with this icon are currently being worked on. While they might still be useful to you, they may contain incomplete information and even errors. You can help by reviewing them and posting your comments and corrections at the respective Lighthouse ticket.
+
+
+<% end %> + +h3. Start Here + +
+<% guide('Getting Started with Rails', 'getting_started.html') do %> + Everything you need to know to install Rails and create your first application. +<% end %> +
+ +h3. Models + +
+<% guide("Rails Database Migrations", 'migrations.html') do %> + This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner. +<% end %> + +<% guide("Active Record Validations and Callbacks", 'activerecord_validations_callbacks.html') do %> + This guide covers how you can use Active Record validations and callbacks. +<% end %> + +<% guide("Active Record Associations", 'association_basics.html') do %> + This guide covers all the associations provided by Active Record. +<% end %> + +<% guide("Active Record Query Interface", 'active_record_querying.html') do %> + This guide covers the database query interface provided by Active Record. +<% end %> +
+ +h3. Views + +
+<% guide("Layouts and Rendering in Rails", 'layouts_and_rendering.html') do %> + This guide covers the basic layout features of Action Controller and Action View, including rendering and redirecting, using content_for blocks, and working with partials. +<% end %> + +<% guide("Action View Form Helpers", 'form_helpers.html', :ticket => 1) do %> + Guide to using built in Form helpers. +<% end %> +
+ +h3. Controllers + +
+<% guide("Action Controller Overview", 'action_controller_overview.html') do %> + This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics. +<% end %> + +<% guide("Rails Routing from the Outside In", 'routing.html') do %> + This guide covers the user-facing features of Rails routing. If you want to understand how to use routing in your own Rails applications, start here. +<% end %> +
+ +h3. Digging Deeper + +
+ +<% guide("Rails on Rack", 'rails_on_rack.html') do %> + This guide covers Rails integration with Rack and interfacing with other Rack components. +<% end %> + +<% guide("Rails Internationalization API", 'i18n.html') do %> + This guide covers how to add internationalization to your applications. Your application will be able to translate content to different languages, change pluralization rules, use correct date formats for each country and so on. +<% end %> + +<% guide("Action Mailer Basics", 'action_mailer_basics.html', :ticket => 25) do %> + This guide describes how to use Action Mailer to send and receive emails. +<% end %> + +<% guide("Testing Rails Applications", 'testing.html', :ticket => 8) do %> + This is a rather comprehensive guide to doing both unit and functional tests in Rails. It covers everything from “What is a test?” to the testing APIs. Enjoy. +<% end %> + +<% guide("Securing Rails Applications", 'security.html') do %> + This guide describes common security problems in web applications and how to avoid them with Rails. +<% end %> + +<% guide("Debugging Rails Applications", 'debugging_rails_applications.html') do %> + This guide describes how to debug Rails applications. It covers the different ways of achieving this and how to understand what is happening "behind the scenes" of your code. +<% end %> + +<% guide("Performance Testing Rails Applications", 'performance_testing.html') do %> + This guide covers the various ways of performance testing a Ruby on Rails application. +<% end %> + +<% guide("The Basics of Creating Rails Plugins", 'plugins.html', :ticket => 32) do %> + This guide covers how to build a plugin to extend the functionality of Rails. +<% end %> + +<% guide("Configuring Rails Applications", 'configuring.html') do %> + This guide covers the basic configuration settings for a Rails application. +<% end %> + +<% guide("Rails Command Line Tools and Rake tasks", 'command_line.html', :ticket => 29) do %> + This guide covers the command line tools and rake tasks provided by Rails. +<% end %> + +<% guide("Caching with Rails", 'caching_with_rails.html', :ticket => 10) do %> + Various caching techniques provided by Rails. +<% end %> + +<% guide("Contributing to Rails", 'contributing_to_rails.html') do %> + Rails is not "somebody else's framework." This guide covers a variety of ways that you can get involved in the ongoing development of Rails. +<% end %> + +
-- cgit v1.2.3