Re: [Radiant] Radiant & Pound - changes https to http?

2007-02-18 Thread Michael Jones
Radiant is Rails based here are a couple articles on SSL redirects and Rails...

http://www.busyashell.com/blog/articles/2006/10/20/how-to-force-https-without-a-host-in-rails
http://blog.innerewut.de/articles/2006/06/21/mongrel-and-rails-behind-apache-2-2-and-ssl


On 2/18/07, Jason Frankovitz <[EMAIL PROTECTED]> wrote:
> I'm using pound as a reverse proxy for radiant, and although I use https
> to connect initially to radiant, after I log in to /admin, all URLs get
> changed to regular 'http'. Is there some way to force radiant to keep
> using https URLs?
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant & Pound - changes https to http?

2007-02-18 Thread Jason Frankovitz
I'm using pound as a reverse proxy for radiant, and although I use https
to connect initially to radiant, after I log in to /admin, all URLs get
changed to regular 'http'. Is there some way to force radiant to keep
using https URLs?

Here's an example:

1. When I go to https://dev.mysite.com/cms, I get our regular content
site, fine.

2. When I go to https://dev.mysite.com/cms/admin/login, I can log in
successfully to radiant's admin interface, fine.

3. If I point to any one of the content pages I want to edit, like our
"About Us" page at /cms/admin/pages/edit/6, the URL is will take me to
is http://dev.mysite.com/cms/admin/pages/edit/6 (NOT https).

Is there a setting or some other means of fixing this? If it helps, this
is the relevant portion of our pound.cfg:

  Service
HeadRequire "Host: .*dev.mysite.com.*"
HeadRequire "Authorization: Basic .*"
URL ".*/cms.*"

BackEnd
Address 192.168.2.33
Port   3030
  End
End

Any help is much appreciated.

Thanks!
-Jason

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant 0.6 RC1

2007-02-18 Thread John Joyce
If installing your own local RubyGems on DreamHost, shouldn't you
install a local Ruby? or no?
I've personally struggled to get Radiant going on DH!!! Always a
BlueCloth dependency error. Says not installed. But it's there, PATHs
are set. Since then, deleted all. Maybe I'll try again.
Would be nice to have a full, detailed, step-by-step for DH and Radiant,
starting from nothing.

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] problem getting radiant-mental with custom extension wor

2007-02-18 Thread Jacob Burkhart
It's always the simplest solution isn't it...

I needed to do:

  def self.included(base)


Instead of

  def included(base)




-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Weird Extension stuff on Deployment

2007-02-18 Thread Michael Jones
Thanks for the suggestions Jacob.

The way I solved this was by editing my xxx_extension.rb file in the
routes section:

old: map.connect 'admin/tools/:action', :controller => 'admin/tools'
new: map.connect 'admin/tools/:action', :controller => 'tools'

Weird, works fine on my local box but in production mode on textdrive
I have to run it this way.

If someone has ideas of why this is the case I'd love to hear it.

Thanks-
Michael
On 2/16/07, Jacob Burkhart <[EMAIL PROTECTED]> wrote:
> First, make sure that your App is in production mode in environment.rb.
>
> If that doesn't solve everything, then you can force things to work with
> explicit "load" calls:
>
> i.e.
>
> load
> "#{RADIANT_ROOT}/vendor/extensions/page_attributes/app/models/page.rb"
>
>
> Try putting an explicit load call to your events controller at the end
> of your extension definition. (or at the end of some other controller in
> radiant core).
>
> Yes I know this is a hack, but it's quick and dirty...
>
>
> --
> Posted via http://www.ruby-forum.com/.
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] problem getting radiant-mental with custom extension wor

2007-02-18 Thread Jacob Burkhart
Sean Cribbs wrote:
> 
> class << Page
>   has_many :widgets
> end
> 
> -or- in the `included` method of your module do a class_eval,
> 
> def included(base)
>   base.class_eval do
> has_many :widgets
>   end
> end
> 
> You could also use `send` to invoke the has_many method.  In other 


The first 2 methods don't work at all.

I get
undefined local variable or method `inherit_from_page' for 
#

Using the first 2 techniques, where I'm adding a:
  belongs_to :inherit_from_page, :class_name => 'Page', :foreign_key 
=> 'inherit_from_page_id'


Using the third technique (explicit send calls) It actually "works" for 
the first page load, and then fails on subsequent loads.


What I think is really messing things up is rails trying to 
automatically load things.  I have rails in dev mode, and it reloads 
changes to certain files, and not to other files.  I havn't been able to 
figure it out, but my suspicions is that the way files are loaded at 
startup is different from the way they are automatically reloaded.

I've been trying to look through the source attempting to figure out 
exactly how extensions are loaded. If someone familliar with the subject 
would hop on irc.freenode.net and talk to igotimac about it... I would 
greatly appreciate any help.

thanks,
Jacob


-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] extending views

2007-02-18 Thread Sean Cribbs
David,

That was part of the impetus for the 'facets' branch.  I haven't had
time to refine it or incorporate Jacob's modifications, but ideally,
instead of replacing the whole page, one would replace or modify only
the parts that need to change.  The changes you make would be
incorporated with changes any other extensions make, and changes to
the core won't break your modifications.

Sean

On 2/18/07, David Minor <[EMAIL PROTECTED]> wrote:
> I understand how to use an extension to modify an admin view, but I'm
> confused as to what to do when I want to modify a view, but another
> extension is already modifying that view.  Can I have two different
> parts of a view modified by two different extensions?  or do I need
> to make my view changes in my custom extension and then monitor the
> provided plugin for changes to the view and manually add them to mine?
>
> For instance: I'm using the reorder plugin which rewrites app/views/
> admin/page/_node.rhtml.  Where should I make additional modifications
> to _node.rhtml?
>
> Thanks,
> dm
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] extending views

2007-02-18 Thread David Minor
I understand how to use an extension to modify an admin view, but I'm  
confused as to what to do when I want to modify a view, but another  
extension is already modifying that view.  Can I have two different  
parts of a view modified by two different extensions?  or do I need  
to make my view changes in my custom extension and then monitor the  
provided plugin for changes to the view and manually add them to mine?

For instance: I'm using the reorder plugin which rewrites app/views/ 
admin/page/_node.rhtml.  Where should I make additional modifications  
to _node.rhtml?

Thanks,
dm
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] rake db:schema:dump [ Newbie Question ]

2007-02-18 Thread Kris Steigerwald
Kris Steigerwald wrote:
> --- Trying to run a rake db:migrate under my_app folder
> rake aborted!
> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, 
> Rakefile.rb)
> /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in 
> `load_rakefile'
> (See full trace by running task with --trace)
>
> --- Trying to run a rake db:migrate under RADIANT_ROOT (radiant/radiant)
>
> rake aborted!
> No such file or directory - 
> /home/forwardf/radiant/radiant/config/../config/database.yml
>
> (See full trace by running task with --trace)
>
> Basically it seems that under the instance it can not find the rake file 
> where as under the radiant app it finds no database.yml. If i created a 
> database.yml inside the RADIANT_ROOT would it work?
>
>
> [EMAIL PROTECTED] [~/forwardfoot]#
> I guess I had the wrong idea as to what rake db:schema:dump does... After 
> copying the rake file from the radiant app to the root of my instance I was 
> able to perform the rake task. I was hoping that it would create the 
> structure and export the data. Thanks for your help. 
>
> BJ Clark wrote:
>   
>> Kris,
>> Are you getting any error messages?
>> Are you 100% sure your database.yml file is correct?
>>
>> More information would be helpful.
>> Good luck,
>> BJ Clark
>>
>>
>> On 2/18/07, Kris Steigerwald <[EMAIL PROTECTED]> wrote:
>>   
>> 
>>> I hosting my application on hostingrails.com. Being new to rails and
>>> radiant I began my application in production mode due to difficulties
>>> trying to deploy from my development application. I have gained a better
>>> understanding of how radiant uses instance mode yet I am unable to
>>> perform a rake db:schema:dump in order to move the production db to a
>>> development db. I have tried performing a rake both in my_app and
>>> radiant/radiant folders, each failed to produce a rake of my db. Any
>>> help would be greatly appreciated. Thanks!
>>>
>>> ___
>>> Radiant mailing list
>>> Post:   Radiant@lists.radiantcms.org
>>> Search: http://radiantcms.org/mailing-list/search/
>>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>>
>>> 
>>>   
>> ___
>> Radiant mailing list
>> Post:   Radiant@lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>>   
>> 
>
>
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>   


___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Facets branch extensibiliy extended

2007-02-18 Thread Jacob Burkhart
Hey Sean,

Here you go... : )

http://pastie.caboo.se/41244

(also at: http://jotapajaro.com/dump/facets.diff)

I implemented the "for_all_editors" I was talking about aboce...

Here's the example of usage from page preview extension;

+Radiant::ExtensionLoader::do_after_activate_extensions do
+  Radiant::PageEditorUI.each_editor{ |editor| editor.add 
"preview/preview_button", :region => :buttons }
+end


Let me know if you have any questions,
I'm eager to see the changes I'm now relying on "officialy supported"

Jacob


--

And for anybody else who's interested the latest version of my changes 
along with TinyMCE and FCKEditor extensions is available at 
http://jotapajaro.com/dump/facetsv4.zip


-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Forcing children's display order

2007-02-18 Thread Sean Cribbs
Brian,

The  tag accepts the 'order' and 'by' attributes.
'order' should be 'asc' or 'desc', and 'by' should be a valid column
name for the pages table (Page model).

Sean

On 2/18/07, Brian Capouch <[EMAIL PROTECTED]> wrote:
> I'm sorry to bother the list with this question.
>
> Once upon a time I solved this; now I can't remember how.
>
> I want to specify the order in which the children of a particular page
> show in its "listing of links"
>
> I haven't quite figured out what the order is now--newest entry first,
> it looks like.
>
> Other than deleting the page and then entering its contents in reverse
> order, is there any way for me to get to an arbitrary way to choose how
> children will appear?
>
> Thanks.
>
> B.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Forcing children's display order

2007-02-18 Thread Brian Capouch
I'm sorry to bother the list with this question.

Once upon a time I solved this; now I can't remember how.

I want to specify the order in which the children of a particular page 
show in its "listing of links"

I haven't quite figured out what the order is now--newest entry first, 
it looks like.

Other than deleting the page and then entering its contents in reverse 
order, is there any way for me to get to an arbitrary way to choose how 
children will appear?

Thanks.

B.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] rake db:schema:dump [ Newbie Question ]

2007-02-18 Thread Kris Steigerwald
--- Trying to run a rake db:migrate under my_app folder
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, 
Rakefile.rb)
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in 
`load_rakefile'
(See full trace by running task with --trace)

--- Trying to run a rake db:migrate under RADIANT_ROOT (radiant/radiant)

rake aborted!
No such file or directory - 
/home/forwardf/radiant/radiant/config/../config/database.yml

(See full trace by running task with --trace)

Basically it seems that under the instance it can not find the rake file 
where as under the radiant app it finds no database.yml. If i created a 
database.yml inside the RADIANT_ROOT would it work?


[EMAIL PROTECTED] [~/forwardfoot]#


BJ Clark wrote:
> Kris,
> Are you getting any error messages?
> Are you 100% sure your database.yml file is correct?
>
> More information would be helpful.
> Good luck,
> BJ Clark
>
>
> On 2/18/07, Kris Steigerwald <[EMAIL PROTECTED]> wrote:
>   
>> I hosting my application on hostingrails.com. Being new to rails and
>> radiant I began my application in production mode due to difficulties
>> trying to deploy from my development application. I have gained a better
>> understanding of how radiant uses instance mode yet I am unable to
>> perform a rake db:schema:dump in order to move the production db to a
>> development db. I have tried performing a rake both in my_app and
>> radiant/radiant folders, each failed to produce a rake of my db. Any
>> help would be greatly appreciated. Thanks!
>>
>> ___
>> Radiant mailing list
>> Post:   Radiant@lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>> 
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>   


___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] rake db:schema:dump [ Newbie Question ]

2007-02-18 Thread BJ Clark
Kris,
Are you getting any error messages?
Are you 100% sure your database.yml file is correct?

More information would be helpful.
Good luck,
BJ Clark


On 2/18/07, Kris Steigerwald <[EMAIL PROTECTED]> wrote:
> I hosting my application on hostingrails.com. Being new to rails and
> radiant I began my application in production mode due to difficulties
> trying to deploy from my development application. I have gained a better
> understanding of how radiant uses instance mode yet I am unable to
> perform a rake db:schema:dump in order to move the production db to a
> development db. I have tried performing a rake both in my_app and
> radiant/radiant folders, each failed to produce a rake of my db. Any
> help would be greatly appreciated. Thanks!
>
> ___
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] rake db:schema:dump [ Newbie Question ]

2007-02-18 Thread Kris Steigerwald
I hosting my application on hostingrails.com. Being new to rails and 
radiant I began my application in production mode due to difficulties 
trying to deploy from my development application. I have gained a better 
understanding of how radiant uses instance mode yet I am unable to 
perform a rake db:schema:dump in order to move the production db to a 
development db. I have tried performing a rake both in my_app and 
radiant/radiant folders, each failed to produce a rake of my db. Any 
help would be greatly appreciated. Thanks!

___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant: MySQL Error

2007-02-18 Thread keith
Hi All,
 
Posted this error earlier - have attached the error and the log below.
Please give me a shout if you have any ideas?
 
Thanks,
Keith

ActiveRecord::StatementInvalid in SiteController#show_page 

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM
config
 
 
070218 18:35:35  InnoDB: Started; log sequence number 0 56135
070218 18:35:35 [Warning] mysql.user table is not updated to new password
format; Disabling new password usage until mysql_fix_privilege_tables is run
070218 18:35:35 [Warning] Can't open and lock time zone table: Table
'mysql.time_zone_leap_second' doesn't exist trying to live without them
C:\INSTAN~1\MySql\bin\mysqld.exe: ready for connections.
Version: '4.1.9-max'  socket: ''  port: 3306  Source distribution
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] sql: error

2007-02-18 Thread keith
Jamie,
 
In command prompt I ran 'ruby script/setup_database production. Am I setting
up the correct database? I have dev - test and live.
 
Keith
 
  _  

From: Jamie M. Wilkinson [mailto:[EMAIL PROTECTED] 
Sent: 18 February 2007 04:05
To: [EMAIL PROTECTED]; radiant@lists.radiantcms.org
Subject: Re: [Radiant] sql: error
 
Have you run "rake db:migrate"? (or script/setup_database on pre-mental
Radiant)
 
On Feb 17, 2007, at 9:01 PM, keith wrote:



All,
Hope some1 can help.
I am receiving the following error having set up radiant and visiting the
localhost:3000. Any ideas?

ActiveRecord::StatementInvalid in SiteController#show_page 

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM
config
___
Radiant mailing list
Post: Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
 
___
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant