Closed sunnyrjuneja closed 10 years ago
I was just going to pull these lines from db/seeds.rb - can you run it in your console to get the navbar to show up?
db/seeds.rb
console
from db/seeds.rb
navbar_entries = [{title: "Home", url: "/"}, {title: "About Us", url:"/cms/pages/about"}, {title: "FAQ", url: "/"}, {title: "For Developers",url: "/"}] navbar_entries.each do |entry| NavbarEntry.find_or_create_by(title: entry[:title]) do |rec| rec.url=entry[:url] end end
Don't worry about the target routes for those links, it doesn't matter if they 404 on you.
I didn't realize you modified db/seeds.rb. I just ran rake db:seed and it worked perfectly. Thanks!
I was just going to pull these lines from
db/seeds.rb
- can you run it in yourconsole
to get the navbar to show up?from db/seeds.rb
Don't worry about the target routes for those links, it doesn't matter if they 404 on you.