0
@@ -145,7 +145,9 @@ and also on programming in general.
0
Debugger support is available through the debugger command when you start your Mongrel or
0
Webrick server with --debugger. This means that you can break out of execution at any point
0
-in the code, investigate and change the model, AND then resume execution! Example:
0
+in the code, investigate and change the model, AND then resume execution!
0
+You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
0
class WeblogController < ActionController::Base
0
@@ -183,6 +185,13 @@ Passing an argument will specify a different environment, like <tt>script/consol
0
To reload your controllers and models after launching the console run <tt>reload!</tt>
0
+You can go to the command line of your database directly through <tt>script/dbconsole</tt>.
0
+You would be connected to the database with the credentials defined in database.yml.
0
+Starting the script without arguments will connect you to the development database. Passing an
0
+argument will connect you to a different database, like <tt>script/dbconsole production</tt>.
0
+Currently works for mysql, postgresql and sqlite.
0
== Description of Contents
0
@@ -200,13 +209,13 @@ app/models
0
Holds the template files for the view that should be named like
0
- weblogs/index.
erb for the WeblogsController#index action. All views use eRuby
0
+ weblogs/index.
html.erb for the WeblogsController#index action. All views use eRuby
0
Holds the template files for layouts to be used with views. This models the common
0
header/footer method of wrapping views. In your views, define a layout using the
0
- <tt>layout :default</tt> and create a file named default.
erb. Inside default.erb,
0
+ <tt>layout :default</tt> and create a file named default.
html.erb. Inside default.html.erb,
0
call <% yield %> to render the view using this layout.
0
@@ -243,4 +252,5 @@ test
0
External libraries that the application depends on. Also includes the plugins subdirectory.
0
+ If the app has frozen rails, those gems also go here, under vendor/rails/.
0
This directory is in the load path.
Comments
No one has commented yet.