Displaying 1 result from an estimated 1 matches for "lookuptbl".
Did you mean:
lookuptable
2008 Jul 29
0
handling multiple lookup tables in rails
...me but I did this
# just to try to get something working
if params[:mdl] == "CollectionType"
@mdl = params[:mdl]
@theModel = CollectionType
else if params[:mdl] == "Gender"
@mdl = params[:mdl]
@theModel = Gender
end
@lookupTbl = @theModel.find(:all)
end
end
--~--~---------~--~----~------------~-------~--~----~
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@public.gmane.org
To...