Changeset 4919
- Timestamp:
- 09/03/06 18:34:28 (2 years ago)
- Files:
-
- trunk/actionpack/lib/action_pack/version.rb (modified) (1 diff)
- trunk/actionpack/MIT-LICENSE (modified) (1 diff)
- trunk/actionpack/README (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_pack/version.rb
r4183 r4919 3 3 MAJOR = 1 4 4 MINOR = 12 5 TINY = 15 TINY = 5 6 6 7 7 STRING = [MAJOR, MINOR, TINY].join('.') trunk/actionpack/MIT-LICENSE
r4 r4919 1 Copyright (c) 2004 David Heinemeier Hansson1 Copyright (c) 2004-2006 David Heinemeier Hansson 2 2 3 3 Permission is hereby granted, free of charge, to any person obtaining trunk/actionpack/README
r4906 r4919 35 35 36 36 BlogController < ActionController::Base 37 def display37 def show 38 38 @customer = find_customer 39 39 end … … 101 101 after_filter LocalizeFilter 102 102 103 def list103 def index 104 104 # Before this action is run, the user will be authenticated, the cache 105 105 # will be examined to see if a valid copy of the results already … … 299 299 * Scaffolding for Active Record model objects 300 300 301 require 'account' # must be an Active Record class302 301 class AccountController < ActionController::Base 303 302 scaffold :account … … 342 341 343 342 class WeblogController < ActionController::Base 344 def save343 def create 345 344 post = Post.create(params[:post]) 346 345 redirect_to :action => "display", :id => post.id … … 351 350 352 351 353 * Runs on top of WEBrick, CGI, FCGI, and mod_ruby354 355 356 == Simple example 352 * Runs on top of WEBrick, Mongrel, CGI, FCGI, and mod_ruby 353 354 355 == Simple example (from outside of Rails) 357 356 358 357 This example will implement a simple weblog system using inline templates and … … 432 431 #!/usr/local/env ruby, if your Ruby is not placed in /usr/local/bin/ruby 433 432 433 Also note that these examples are all for demonstrating using Action Pack on 434 its own. Not for when it's used inside of Rails. 434 435 435 436 == Download … … 460 461 == Support 461 462 462 The Action Pack homepage is http://www.rubyonrails. com. You can find463 The Action Pack homepage is http://www.rubyonrails.org. You can find 463 464 the Action Pack RubyForge page at http://rubyforge.org/projects/actionpack. 464 465 And as Jim from Rake says: … … 467 468 remember to update the corresponding unit tests. If fact, I prefer 468 469 new feature to be submitted in the form of new unit tests. 469 470 For other information, feel free to ask on the ruby-talk mailing list (which471 is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com.