Hi

Well, I have antoher question.I've just added def comm to controller

----
class HomeController < ApplicationController
active_scaffold :home do |config|
config.action_links.add :comm, :label => 'Comment', :page => false, 
:type => :record
config.action_links.add :about, :label => '--Contact--', :page => true

       config.label = "borrow tool"
       config.columns = [:title, :body, :char, :sim, :oth, :wyp, d, 
:comm]
       list.sorting = {:title => 'ASC'}
                           config.list.per_page=27
                           config.search.link.label = "Search for device 
or person"
                           config.create.link.label = "Borrow device"
                           config.create.columns.exclude d
                           config.update.columns = [d]
                           active_scaffold_config.actions.exclude 
:delete
                           config.theme = :default
                           config.theme = :blue
                           config.update.link.label = "Give back device"
              end

def comm
        @list = Home.find(params[:id])
end

end
--------------


My view file:

comm.html.erb
----
<h1>Comments</h1>

<% form_for(@list) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :comm %><br />
    <%= f.text_area :comm %>
  </p>
  <p>
    <%= f.submit "update" %>
  </p>
<% end %>
--------------


Now its showing what i wanted but when i click on Update field it 
returns me:
----------------


NameError in HomesController#update

uninitialized constant HomesController
RAILS_ROOT: /home/mpindela/Desktop/rails/ww

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"commit"=>"Update",
"_method"=>"put",
"authenticity_token"=>"kO6l6v3p4YheE06LvI2YS5QsN5x+c45EYhjh03crl3o=",
"id"=>"47",
"home"=>{"comm"=>""}}
Show session dump

Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}
------------

Can you help me ?? i dont know how to pass this error.

beny18241
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to