Hallo Jens,
hat geklappt wie von dir gesagt. Wunderbar (also muss ich den Datensatz 
schon beim Aufruf anlegen, wenn ich das richtig verstanden habe).
Danke!

Jens Krämer wrote:
> On Sat, Feb 02, 2008 at 04:12:20PM +0100, Knut Linke wrote:
>>     <label for="topicid">TopicID:</label>
>>     <%= text_field 'question', :topicid  %>
>> eingeben (topicid ist das Feld, question die Tabelle und :topicid die 
>> Variable die genutzt werden soll).
> 
> wenn du die topicid in einem Formular f�r 'Question' verwenden willst,
> solltest du das eher so machen:
> 
> def newquestion
>   @question = Question.new :topicid => params[:topicid]
> end
> 
> text_field bezieht sich immer auf ein Feld (:topicid) eines Objekts
> (question).
> 
> Jens
> 
> 
> 
> --
> Jens Kr�mer
> http://www.jkraemer.net/ - Blog
> http://www.omdb.org/     - The new free film database

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an