Displaying 2 results from an estimated 2 matches for "projekt_id".
Did you mean:
project_id
2006 Jul 05
2
Serialized object behaves weird
...include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
attr_writer :personen, :monat, :projekte, :kunde
ATTRIBUTES = [
[''personen'', ''person_id'', ''Personen'', Person],
[''projekte'', ''projekt_id'', ''Projekte'', Projekt],
]
def initialize(attrs = nil)
attrs.each {|k,v| self.send(k + ''='', v) } unless attrs.nil?
end
def to_s
ret = String.new
ATTRIBUTES.each {|attr|
vals = self.send(attr[0])
ret << (ret.empty? ?...
2007 Dec 14
0
combobox and m:n relation
...Project.find(:all).collect {|c| [c.name_ger, c.id]},
:prompt => "Select a Category" %>
the code does not work. does anyone has an idea how to save the
combobox''s content. it works for a 1:n relation because i just have to
save the task which has a projekt_id but with a m:n relations it is
different.
thank you
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@pu...