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

George Moschovitis george.moschovitis at gmail.com
Sat Nov 3 16:26:22 EDT 2007


Ok, will check all admin issues once and for all ;-) Expect a patch
tomorrow.

-g.

On Nov 3, 2007 10:23 PM, Robert Mela <rob at robmela.com> wrote:

> 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
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://me.gr
http://joy.gr
http://cull.gr
http://nitroproject.org
http://phidz.com
http://joyerz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071103/f0e76f0b/attachment.html 


More information about the Nitro-general mailing list