Hi,
I need to set up an initial value from controller. In my views I’ve
something like
<%= text_field “object”, “name” %>
and would like to do something like this from controller
def index
@object[:name] = ‘default value’
end
but still got an error. Object doesn’t have database model (and will not
have)
Thank you
PS: now using <%= text_field_tag “object_name”, @object_value %> and
setting in as @object_value = ‘something’, but is not so elegant…
===============================================================================
Tomas Meinlschmidt, SBN3, MCT, MCP, MCP+I, MCSE, NetApp Filer & NetCache
gPG: CB78 76D9 210F 256A ADF4 0B02 BECA D462 66AB 6F56 / $ID: 66AB6F56
GCS d-(?) s: a- C++ ULHISC*++++$ P+++>++++ L+++$>++++ E— W+++$ N++(+)
!o !K w(—) !O !M V PS+ PE Y+ PGP++ [email protected] !5 X? R tv b+ !DI D+ G
e>+++ h---- r+++ [email protected]