Permalink
Browse files

Fix icons

  • Loading branch information...
1 parent 4a53eb8 commit c399e80e04e0f62766c20e39195cae9a0d48ab8f @lifo lifo committed Oct 22, 2008
Showing with 227 additions and 127 deletions.
  1. +1 −2 railties/Rakefile
  2. +5 −5 railties/doc/guides/html/actioncontroller_basics.html
  3. +16 −16 railties/doc/guides/html/association_basics.html
  4. +1 −1 railties/doc/guides/html/benchmarking_and_profiling.html
  5. +2 −2 railties/doc/guides/html/creating_plugins.html
  6. +9 −9 railties/doc/guides/html/debugging_rails_applications.html
  7. +121 −20 railties/doc/guides/html/finders.html
  8. +9 −9 railties/doc/guides/html/form_helpers.html
  9. +14 −14 railties/doc/guides/html/getting_started_with_rails.html
  10. +11 −11 railties/doc/guides/html/index.html
  11. +13 −13 railties/doc/guides/html/layouts_and_rendering.html
  12. +3 −3 railties/doc/guides/html/migrations.html
  13. +17 −17 railties/doc/guides/html/routing_outside_in.html
  14. +5 −5 railties/doc/guides/html/testing_rails_applications.html
  15. 0 railties/doc/guides/source/{ → images}/icons/README
  16. BIN railties/doc/guides/source/{ → images}/icons/callouts/1.png
  17. BIN railties/doc/guides/source/{ → images}/icons/callouts/10.png
  18. BIN railties/doc/guides/source/{ → images}/icons/callouts/11.png
  19. BIN railties/doc/guides/source/{ → images}/icons/callouts/12.png
  20. BIN railties/doc/guides/source/{ → images}/icons/callouts/13.png
  21. BIN railties/doc/guides/source/{ → images}/icons/callouts/14.png
  22. BIN railties/doc/guides/source/{ → images}/icons/callouts/15.png
  23. BIN railties/doc/guides/source/{ → images}/icons/callouts/2.png
  24. BIN railties/doc/guides/source/{ → images}/icons/callouts/3.png
  25. BIN railties/doc/guides/source/{ → images}/icons/callouts/4.png
  26. BIN railties/doc/guides/source/{ → images}/icons/callouts/5.png
  27. BIN railties/doc/guides/source/{ → images}/icons/callouts/6.png
  28. BIN railties/doc/guides/source/{ → images}/icons/callouts/7.png
  29. BIN railties/doc/guides/source/{ → images}/icons/callouts/8.png
  30. BIN railties/doc/guides/source/{ → images}/icons/callouts/9.png
  31. BIN railties/doc/guides/source/{ → images}/icons/caution.png
  32. BIN railties/doc/guides/source/{ → images}/icons/example.png
  33. BIN railties/doc/guides/source/{ → images}/icons/home.png
  34. BIN railties/doc/guides/source/{ → images}/icons/important.png
  35. BIN railties/doc/guides/source/{ → images}/icons/next.png
  36. BIN railties/doc/guides/source/{ → images}/icons/note.png
  37. BIN railties/doc/guides/source/{ → images}/icons/prev.png
  38. BIN railties/doc/guides/source/{ → images}/icons/tip.png
  39. BIN railties/doc/guides/source/{ → images}/icons/up.png
  40. BIN railties/doc/guides/source/{ → images}/icons/warning.png
View
@@ -282,7 +282,6 @@ task :guides do
FileUtils.mkdir(html)
template = File.expand_path("doc/guides/source/templates/guides.html.erb")
- icons = File.expand_path("doc/guides/source/icons")
ignore = ['icons', 'images', 'templates', 'stylesheets']
ignore << 'active_record_basics.txt'
@@ -303,7 +302,7 @@ task :guides do
begin
puts "GENERATING => #{output}"
ENV['MANUALSONRAILS_TOC'] = 'no' if indexless.include?(entry)
- Mizuho::Generator.new(input, output, template, false, icons).start
+ Mizuho::Generator.new(input, output, template).start
rescue Mizuho::GenerationError
STDERR.puts "*** ERROR"
exit 2
@@ -465,7 +465,7 @@ <h3 id="_accessing_the_session">4.2. Accessing the session</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">There are two <tt>session</tt> methods, the class and the instance method. The class method which is described above is used to turn the session on and off while the instance method described below is used to access session values. The class method is used outside of method definitions while the instance methods is used inside methods, in actions or filters.</td>
</tr></table>
@@ -974,15 +974,15 @@ <h3 id="_sending_files">10.1. Sending files</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">Be careful when using (or just don't use) "outside" data (params, cookies, etc) to locate the file on disk, as this is a security risk as someone could gain access to files they are not meant to have access to.</td>
</tr></table>
</div>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">It is not recommended that you stream static files through Rails if you can instead keep them in a public folder on your web server. It is much more efficient to let the user download the file directly using Apache or another web server, keeping the request from unnecessarily going through the whole Rails stack.</td>
</tr></table>
@@ -1019,7 +1019,7 @@ <h3 id="_restful_downloads">10.2. RESTful downloads</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">Configuration files are not reloaded on each request, so you have to restart the server in order for their changes to take effect.</td>
</tr></table>
@@ -1112,7 +1112,7 @@ <h3 id="_tt_rescue_from_tt">12.2. <tt>rescue_from</tt></h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">Certain exceptions are only rescuable from the ApplicationController class, as they are raised before the controller gets initialized and the action gets executed. See Pratik Naik's <a href="http://m.onkey.org/2008/7/20/rescue-from-dispatching">article</a> on the subject for more information.</td>
</tr></table>
@@ -433,7 +433,7 @@ <h3 id="_the_tt_has_many_tt_association">2.3. The <tt>has_many</tt> Association<
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">The name of the other model is pluralized when declaring a <tt>has_many</tt> association.</td>
</tr></table>
@@ -573,7 +573,7 @@ <h3 id="_choosing_between_tt_belongs_to_tt_and_tt_has_one_tt">2.7. Choosing Betw
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">Using <tt>t.integer :supplier_id</tt> makes the foreign key naming obvious and implicit. In current versions of Rails, you can abstract away this implementation detail by using <tt>t.references :supplier</tt> instead.</td>
</tr></table>
@@ -777,7 +777,7 @@ <h3 id="_updating_the_schema">3.3. Updating the Schema</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">The precedence between model names is calculated using the <tt>&lt;</tt> operator for <tt>String</tt>. This means that if the strings are of different lengths, and the strings are equal when compared up to the shortest length, then the longer string is considered of higher lexical precedence than the shorter one. For example, one would expect the tables "paper_boxes" and "papers" to generate a join table name of "papers_paper_boxes" because of the length of the name "paper_boxes", but it in fact generates a join table name of "paper_boxes_papers".</td>
</tr></table>
@@ -1112,7 +1112,7 @@ <h5 id="_tt_dependent_tt"><tt>:dependent</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">You should not specify this option on a <tt>belongs_to</tt> association that is connected with a <tt>has_many</tt> association on the other class. Doing so can lead to orphaned records in your database.</td>
</tr></table>
@@ -1131,7 +1131,7 @@ <h5 id="_tt_foreign_key_tt"><tt>:foreign_key</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">In any case, Rails will not create foreign key columns for you. You need to explicitly define them as part of your migrations.</td>
</tr></table>
@@ -1174,7 +1174,7 @@ <h5 id="_tt_include_tt"><tt>:include</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">There's no need to use <tt>:include</tt> for immediate associations - that is, if you have <tt>Order belongs_to :customer</tt>, then the customer is eager-loaded automatically when it's needed.</td>
</tr></table>
@@ -1414,7 +1414,7 @@ <h5 id="_tt_foreign_key_tt_2"><tt>:foreign_key</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">In any case, Rails will not create foreign key columns for you. You need to explicitly define them as part of your migrations.</td>
</tr></table>
@@ -1606,7 +1606,7 @@ <h5 id="_tt_em_collection_em_delete_object_8230_tt"><tt><em>collection</em>.dele
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">Objects will be in addition destroyed if they're associated with <tt>:dependent &#8658; :destroy</tt>, and deleted if they're associated with <tt>:dependent &#8658; :delete_all</tt>.</td>
</tr></table>
@@ -1834,7 +1834,7 @@ <h5 id="_tt_counter_sql_tt"><tt>:counter_sql</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">If you specify <tt>:finder_sql</tt> but not <tt>:counter_sql</tt>, then the counter SQL will be generated by substituting <tt>SELECT COUNT(*) FROM</tt> for the <tt>SELECT &#8230; FROM</tt> clause of your <tt>:finder_sql</tt> statement.</td>
</tr></table>
@@ -1844,7 +1844,7 @@ <h5 id="_tt_dependent_tt_3"><tt>:dependent</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">This option is ignored when you use the <tt>:through</tt> option on the association.</td>
</tr></table>
@@ -1867,7 +1867,7 @@ <h5 id="_tt_foreign_key_tt_3"><tt>:foreign_key</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">In any case, Rails will not create foreign key columns for you. You need to explicitly define them as part of your migrations.</td>
</tr></table>
@@ -1951,7 +1951,7 @@ <h5 id="_tt_select_tt_3"><tt>:select</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">If you specify your own <tt>:select</tt>, be sure to include the primary key and foreign key columns of the associated model. If you do not, Rails will throw an error.</td>
</tr></table>
@@ -2077,7 +2077,7 @@ <h5 id="_additional_column_methods">Additional Column Methods</h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/warning.png" alt="Warning" />
+<img src="./images/icons/warning.png" alt="Warning" />
</td>
<td class="content">The use of extra attributes on the join table in a <tt>has_and_belongs_to_many</tt> association is deprecated. If you require this sort of complex behavior on the table that joins two models in a many-to-many relationship, you should use a <tt>has_many :through</tt> association instead of <tt>has_and_belongs_to_many</tt>.</td>
</tr></table>
@@ -2103,7 +2103,7 @@ <h5 id="_tt_em_collection_em_lt_lt_object_8230_tt_2"><tt><em>collection</em>&lt;
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">This method is aliased as <tt><em>collection</em>.concat</tt> and <tt><em>collection</em>.push</tt>.</td>
</tr></table>
@@ -2296,7 +2296,7 @@ <h5 id="_tt_association_foreign_key_tt"><tt>:association_foreign_key</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">The <tt>:foreign_key</tt> and <tt>:association_foreign_key</tt> options are useful when setting up a many-to-many self-join. For example:</td>
</tr></table>
@@ -2349,7 +2349,7 @@ <h5 id="_tt_counter_sql_tt_2"><tt>:counter_sql</tt></h5>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">If you specify <tt>:finder_sql</tt> but not <tt>:counter_sql</tt>, then the counter SQL will be generated by substituting <tt>SELECT COUNT(*) FROM</tt> for the <tt>SELECT &#8230; FROM</tt> clause of your <tt>:finder_sql</tt> statement.</td>
</tr></table>
@@ -578,7 +578,7 @@ <h3 id="_our_first_performance_test">5.1. Our First Performance Test</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">KCachegrind is Linux only. For Mac this means you have to do a full KDE install to have it working in your OS. Which is over 3 gigs in size. For windows there is clone called wincachegrind but it is no longer actively being developed.</td>
</tr></table>
@@ -390,7 +390,7 @@ <h3 id="_create_the_basic_app">1.1. Create the basic app</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">The aforementioned instructions will work for sqlite3. For more detailed instructions on how to create a rails app for other databases see the API docs.</td>
</tr></table>
@@ -438,7 +438,7 @@ <h3 id="_create_the_plugin">1.2. Create the plugin</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/note.png" alt="Note" />
+<img src="./images/icons/note.png" alt="Note" />
</td>
<td class="content">
<div class="title">Editor's note:</div>Many plugin authors prefer to keep this file, and add all of the require statements in it. That way, they only line in init.rb would be <tt>require "yaffle"</tt>. If you are developing a plugin that has a lot of files in the lib directory, you may want to create a subdirectory like lib/yaffle and store your files in there. That way your init.rb file stays clean</td>
@@ -424,7 +424,7 @@ <h3 id="_what_is_the_logger">2.1. What is The Logger?</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">By default, each log is created under <tt>RAILS_ROOT/log/</tt> and the log file name is <tt>environment_name.log</tt>.</td>
</tr></table>
@@ -444,7 +444,7 @@ <h3 id="_log_levels">2.2. Log Levels</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">The default Rails log level is <tt>info</tt> in production mode and <tt>debug</tt> in development and test mode.</td>
</tr></table>
@@ -561,7 +561,7 @@ <h3 id="_setup">3.1. Setup</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">In development mode, you can dynamically <tt>require 'ruby-debug'</tt> instead of restarting the server, if it was started without <tt>&#8212;debugger</tt>.</td>
</tr></table>
@@ -593,7 +593,7 @@ <h3 id="_the_shell">3.2. The Shell</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">To view the help menu for any command use <tt>help &lt;command-name&gt;</tt> in active debug mode. For example: <em><tt>help var</tt></em></td>
</tr></table>
@@ -717,7 +717,7 @@ <h3 id="_inspecting_variables">3.5. Inspecting Variables</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">You can also step into <strong>irb</strong> mode with the command <tt>irb</tt> (of course!). This way an irb session will be started within the context you invoked it. But be warned: this is an experimental feature.</td>
</tr></table>
@@ -748,7 +748,7 @@ <h3 id="_inspecting_variables">3.5. Inspecting Variables</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">The commands <tt>p</tt> (print) and <tt>pp</tt> (pretty print) can be used to evaluate Ruby expressions and display the value of variables to the console.</td>
</tr></table>
@@ -766,7 +766,7 @@ <h3 id="_step_by_step">3.6. Step by Step</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">You can also use <tt>step+ <em>n</em></tt> and <tt>step- <em>n</em></tt> to move forward or backward <em>n</em> steps respectively.</td>
</tr></table>
@@ -796,7 +796,7 @@ <h3 id="_step_by_step">3.6. Step by Step</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">You can use ruby-debug while using script/console. Just remember to <tt>require "ruby-debug"</tt> before calling the <tt>debugger</tt> method.</td>
</tr></table>
@@ -962,7 +962,7 @@ <h3 id="_settings">3.12. Settings</h3>
<div class="admonitionblock">
<table><tr>
<td class="icon">
-<img src="/Users/lifo/Docs/docrails/railties/doc/guides/source/icons/tip.png" alt="Tip" />
+<img src="./images/icons/tip.png" alt="Tip" />
</td>
<td class="content">You can include any number of these configuration lines inside a <tt>.rdebugrc</tt> file in your HOME directory. ruby-debug will read this file every time it is loaded. and configure itself accordingly.</td>
</tr></table>
Oops, something went wrong.

0 comments on commit c399e80

Please sign in to comment.