Forum: Nitro Nitro/Facets 2.0.3: OgAdminController fails to mount

Posted by Robert Mela (Guest)
on 2007-11-03 21:23
Attachment: rob.vcf (117 Bytes)
(Received via mailing list)
When I run this against Nitro trunk the OgAdminController is mounted on
/admin/og.     Running against the new branch OgAdminController doesn't
get mounted.  My hunch is that part code needs more updates...

Example copied verbatim from bottom of
http://robmela.com/cheatsheets/og_intro

( note: change 'nitro/part/admin' to 'part/admin' for the newest branch
code )


---

#!/usr/bin/env ruby
require 'sqlite3'
require 'nitro_and_og'
include Nitro
require 'nitro/part/admin'

# Og model
class Book
  attr_accessor :title, String
  attr_accessor :author, String
end

# Controller
class Foo
  def index
    redirect_to '/admin' # redirect to Nitro admin scaffold
  end
end

Og.create_schema = true
Og.use_uuid_primary_keys = true
Og.start( :name => "library", :adapter => :sqlite, :evolve_schema =>
:full )

app=Application.new
app.dispatcher.root = Foo
app.start
Posted by George Moschovitis (Guest)
on 2007-11-03 21:27
(Received via mailing list)
Ok, will check all admin issues once and for all ;-) Expect a patch
tomorrow.

-g.
Posted by Robert Mela (Guest)
on 2007-11-03 21:35
Attachment: rob.vcf (117 Bytes)
(Received via mailing list)
Remember tho that the original admin issues are upstream in cgi.rb --
the dictionary vs. hash conundrum.

Facets 2.0.3 only introduced new require paths.
This topic is locked and can not be replied to.