Re: [Radiant] Can extensions...

2007-03-18 Thread Michael Jones
I'm still new at radiant but my guess is YES and I think this may work: In the migration file for your extension add code to create an entry in the pages table. Something like: Page.create(your params here) On 3/17/07, Karl Doody <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been playing aroun

Re: [Radiant] Can extensions use a different database?

2007-03-27 Thread Sean Cribbs
This is a pretty common question with ActiveRecord in general. Essentially, yes you can. Inside your model, I believe you use the "establish_connection" call. That will connect to the specified database in only that model. Sean p.s. see http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M

Re: [Radiant] Can extensions use a different database?

2007-03-27 Thread Oliver Baltzer
Hi Colin: Colin Nederkoorn wrote: > Where I am uncertain is - Can you query a different database from an > extension? If so, how? I don't think Rails currently has support for connecting to two databases simultaneously. However, if you are familiar with SQL you can always setup a second database