public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
minor changes in railties/README. Added dbconsole introduction
Manik Juneja (author)
Mon May 12 11:13:31 -0700 2008
commit  cbd5db8f5165f013069b02414f9bf762d88f619f
tree    a35208e2c55e72f6fa453c7cfe6e54b71b92881a
parent  e9a0526d5b3fc28a81eb47dfb5f6086112d90362
...
145
146
147
148
 
 
 
149
150
151
...
183
184
185
 
 
 
 
 
 
 
186
187
188
...
200
201
202
203
 
204
205
206
207
208
209
 
210
211
212
...
243
244
245
 
246
...
145
146
147
 
148
149
150
151
152
153
...
185
186
187
188
189
190
191
192
193
194
195
196
197
...
209
210
211
 
212
213
214
215
216
217
 
218
219
220
221
...
252
253
254
255
256
0
@@ -145,7 +145,9 @@ and also on programming in general.
0
 
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
+Example:
0
 
0
   class WeblogController < ActionController::Base
0
     def index
0
@@ -183,6 +185,13 @@ Passing an argument will specify a different environment, like <tt>script/consol
0
 
0
 To reload your controllers and models after launching the console run <tt>reload!</tt>
0
 
0
+== dbconsole
0
+
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
 
0
 == Description of Contents
0
 
0
@@ -200,13 +209,13 @@ app/models
0
 
0
 app/views
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
   syntax.
0
 
0
 app/views/layouts
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
 
0
 app/helpers
0
@@ -243,4 +252,5 @@ test
0
 
0
 vendor
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.