[Nitro] Nitro/Facets 2.0.3: OgAdminController fails to mount

Robert Mela rob at robmela.com
Sat Nov 3 16:18:45 EDT 2007

When I run this against Nitro trunk the OgAdminController is mounted on /admin/og.

Running against the new branch it isn't.

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

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


#!/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

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

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

 app.dispatcher.root = Foo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rob.vcf
Type: text/x-vcard
Size: 116 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20071103/9e3c3b0c/attachment.vcf 

More information about the Nitro-general mailing list