Displaying 2 results from an estimated 2 matches for "object_valu".
Did you mean:
object_value
2006 Aug 18
3
setting a value of text_field from a controller
...ot; %>
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...
2006 Apr 11
2
Mapping contained objects to forms?
I''m having lots of trouble trying to map an object that contains another
object to the right forms param. So say I have Book which has one
Publisher. Here is what I''ve tried:
<p><label for="book_publisher">Publisher</label><br/>
<%= text_field ''book'', ''publisher.name'' %> </p>
Then