Hi Sean,

I've explored further this approach and it looks exactly what I'm
looking for, but I'm having problems loading the AR models into
Radiant.

I created the extension and the custom tags, (pretty easy and slick
indeed :), and put the require environment.rb of my rails app at the
top of the 'radiantsite/vendor/extensions/myextension/lib/myextension.rb'
file but I got this errors:

 warning: already initialized constant OPTIONS
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:18:
undefined method `options' for []:Array (NoMethodError)

and the radiant's mongrel server doesn't boot anymore.

Do I need to require the environment.rb file somewhere else or is
there other method to load my app's models into the radiant.

Thanks in advance!

jorge.

On 9/27/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> You could import some of your models into a Radiant extension and then
> use them there.  They may have to connect to your other database
> manually, i.e. inside their declaration.
>
> Sean
>
> On 9/27/07, jorge santiago <[EMAIL PROTECTED]> wrote:
> > Well, my rails app it's a bit old, so it's not
> > ActiveResource-compatible. It would be great though, to rewrite it and
> > make it RESTful in the future, but currently I don't have the time. Is
> > there another way to achieve what I'm looking for?
> >
> > Thanks,
> >
> > Jorge.
> >
> > On 9/27/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> > > Jorge,
> > >
> > > If your app is ActiveResource-compatible, that might be an easy way to
> > > integrate them.
> > >
> > > Sean
> > >
> > > On 9/27/07, jorge santiago <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have radiant running my website and would like to use some models
> > > > and functions from another rails app running in the same server. Any
> > > > ideas on how to do this if its possible?
> > > >
> > > > Thanks in advance,
> > > >
> > > > jorge.
> > > > _______________________________________________
> > > > Radiant mailing list
> > > > Post:   [email protected]
> > > > Search: http://radiantcms.org/mailing-list/search/
> > > > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> > > >
> > > _______________________________________________
> > > Radiant mailing list
> > > Post:   [email protected]
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to