The respond_to block is optional, and if the block is missing rails
will execute a render :task so for the edit task it will look for the /
controller/edit.html.erb file
Here is information from the api...
http://apidock.com/rails/ActionController/MimeResponds/InstanceMethods/respond_to
On
On Mon, Dec 29, 2008 at 12:13 PM, Sarah Allen
rails-mailing-l...@andreas-s.net wrote:
I'm new to Rails and I'm trying to understand the code created by
generate scaffold. I'm using Rails 2.2.2.
$ ./script/generate scaffold Task description:string
generated the following code in
Patrick Doyle wrote:
If you look in app/controllers/application.rb, you will find that
ApplicationController is a task that you derived from
ActionController::Base. You should be able to find documentation about
ActionController::Base at http://api.rubyonrails.org/
ah. This solves the
On Mon, Dec 29, 2008 at 2:22 PM, Sarah Allen
rails-mailing-l...@andreas-s.net wrote:
Patrick Doyle wrote:
From one newbie to another...
Look at the links created in the index view for your tasks controller.
With
the default scaffold, you should see three links to the right of each
4 matches
Mail list logo