[Radiant] Re: Using devise for a radiant extension

2010-08-16 Thread swartz
Hmmm... the issue with uninitialized constant SessionsController i was able to resolve by moving gem.config warden gem.config devise to environment.rb instead of the standard extension config block file. Strange... but ok. Now the issue I'm attempting to resolve is as follows: When I attempt

[Radiant] Re: Using devise (or some other authentication/authorization framework) as a log in solution for Radiant end-users

2010-10-05 Thread swartz
the core Radiant developers on this topic. -- swartz On Oct 5, 11:28 am, Wes Gamble we...@att.net wrote:   All, I am wanting to build a fairly full featured login/registration system for my Radiant end-users (content consumers, not authors or reviewers). Obviously, Radiant does come with a built

[Radiant] Re: Avoid using the same Radiant session with custom auth

2010-10-06 Thread swartz
Hi Wes, Yeap pretty much. On Oct 5, 6:36 pm, Wes Gamble we...@att.net wrote:   So you need to maintain two distinct sessions from one browser?  Is that right? W On 10/5/10 6:22 PM, swartz wrote: I have a 0.9.1-based radiant install that uses a custom end-user auth- system. It uses

[Radiant] Re: undefined method `match' - when testing extension features with cucumber and webrat

2010-10-06 Thread swartz
I had a similar issue when I was moving extensions from dev-server to production. One of the issues was that I had a typo in the migration scripts and one of the table fields was misnamed when migration was executed. So when I attempted to retrieve data from it, it had that same error regarding

[Radiant] Re: Avoid using the same Radiant session with custom auth

2010-10-06 Thread swartz
from one auth. system when the user logs in to the other, assuming that both logins don't need to be active at the same time. W On 10/6/10 10:26 AM, swartz wrote: Hi Wes, Yeap pretty much. On Oct 5, 6:36 pm, Wes Gamblewe...@att.net  wrote:    So you need to maintain two distinct

[Radiant] Re: Palmer’s Cocoa Butter Massage Cream for Stretch Marks.

2010-10-08 Thread swartz
Mmmm... Cocoa Butter Goddamn spammers! On Oct 7, 11:22 pm, Elaine Kintner elainekn...@gmail.com wrote: Stretch marks on the stomach are a pregnant woman's worst nightmare. Stretch marks are usually caused by a rapid stretching of the skin - like during pregnancy or other periods of weight

[Radiant] Best way to protect pages with custom auth-system?

2010-10-16 Thread swartz
I have a custom auth-system based on authlogic (based largely on reader extension). I have two roles: regular users and moderators. I also have two extra pages types, one is for moderators only, the other is for either. Whats would be recommended way to require certain user role to access a

[Radiant] Re: Using Devise as an authentication solution for end users with Radiant

2010-10-17 Thread swartz
Hey Wes, Glad you got it working. I shall be attempting to re-integrate devise into an ongoing project as I've attempted earlier. Just a few comments: Step4: It now makes sense. I was not careful at looking at what gets called and from where. This is where I gave up on my early attempt. Thank

[Radiant] Re: Hide some page types from page edit form

2010-10-21 Thread swartz
Hi Jim, Thank you for your suggestions. Forgot to mention using 0.9.1gem. What are the changes that are going to happen in the next release? On Oct 21, 10:23 am, Jim Gay j...@saturnflyer.com wrote: On Wed, Oct 20, 2010 at 5:48 PM, swartz netv...@gmail.com wrote: Anyone know what

[Radiant] Re: Best way to protect pages with custom auth-system?

2010-11-01 Thread swartz
What I've done so far is to use around_filter with process_page from SiteController. But I find that the login in this overwritten method is expensive as it has to run and hit the database for every page. Just seeing if there're better ways to do this.

[Radiant] Re: Best way to protect pages with custom auth-system?

2010-11-01 Thread swartz
I'm toying with the idea of caching the permissions, that is load them all up and their permission from table into memory and keep them there. So it doesn't have to hit the database every time. The good thing is there're only 200 pages and not 2,000. On Nov 1, 3:53 pm, swartz netv...@gmail.com

[Radiant] Re: How can i deploy radiant application to sub-directory?

2010-11-26 Thread swartz
css, js, and many others). It's not hard, just time consuming and error prone. My recommendation: If you can, deploy radiant to a subdomain instead of a subdirectory. For example to dictionary.yourdomain.com instead of yourdomain.com/ dictionary -- swartz On Nov 26, 12:35 am, Ahn Byungmo b

[Radiant] Re: render_radiant

2011-01-20 Thread swartz
-layouts-extension -- Swartz On Jan 19, 9:18 pm, nx n...@nu-ex.com wrote: I wanted to use ActionController like I always have, except render the action with Radiant. So I wrote a gem that overrides render to take instance variables and methods like params and flash from the action and assign them

[Radiant] Faster ways to (re)generate sitemap

2011-02-11 Thread swartz
I recently took over support for a large website that uses Radiant. Over 1000 pages and added/edited all the time. The site has a sitemap page, which shows all of the available resources. The sitemap is generated using the navigation_tags extension: r:nav root=/ depth=4 expand_all=true / It

[Radiant] Re: Faster ways to (re)generate sitemap

2011-02-15 Thread swartz
Unfortunately the site does change, almost on a daily basis. The site averages about 5 new pages per week. On Feb 12, 6:02 am, Mohit Sindhwani t...@onghu.com wrote: On 11/2/2011 10:23 PM, swartz wrote: If the site doesn't change too frequently and is managed by a very small number of people

[Radiant] Re: Faster ways to (re)generate sitemap

2011-02-15 Thread swartz
On Feb 11, 10:49 am, Anton J Aylward radi...@antonaylward.com wrote:  r:children:each  order=asc    r:unless_content part=no-map      li        r:link /      /li        r:if_children          ul            r:snippet name=sitemapper /          /ul        /r:if_children      /li    

[Radiant] Registering observers in a radiant extension

2011-02-21 Thread swartz
Is there a better way to register an observer for a Radiant extension than editing environment.rb? I have tried adding extension_config block to my extension like so extension_config do |config| config.active_record.observers = :mymodel_observer end But that did not work.

[Radiant] only_allow_access_to declaration is not inherited in controller subclasses

2011-06-26 Thread swartz
Using Radiant 0.9.1, Ruby 1.8.7, Apache + mod_passenger in development environment (for now). I'm writing a simple extension, where I have a base controller class that goes like this: class Admin::BaseController ApplicationController # allow only admins to the actions in this controller