I have two tables cms_pages and cms_menus
cms_menus has a foreign key to cms_pages.id so when i create a new link
i can
releate to a page.
Insert is fine, but when i do a list of cms_menus and i want to know the
page name
i just put menu.cms_page.name but i get an error that cms_page is nil,
now
what is driving me crazy is the fact that if i do an
menu.cms_page.inspect i have all the information of that page. I tried
with
menu.cms_page[:name]
menu.cms_page[‘name’]
menu.cms_page.name
NOTHING, all the ohters models releation works fine why i have this
here!!!1
Thanks
claudio