Active scaffold multiple edit links

Hi,

Anybody knows how to put multiple edit fields into active scaffold?
I’mean exactly 2 edit fields where first update 1’st column and second
one 2’nd column ??

Regards

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

Comments

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

<%= f.label :comm %>
<%= f.text_area :comm %>

<%= f.submit "update" %>

<% 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs