Random question: resource_controller and desert

1 view
Skip to first unread message

Dan B

unread,
Mar 9, 2010, 5:52:59 PM3/9/10
to tog_users
Random question: Does anyone have experience using resource_controller
and desert? I togified an app that uses resource_controller and,
after a lot of debugging, I came to the realization that
resource_controller and desert don't seem to get along.

Thanks,
Dan

Alberto Molpeceres

unread,
Mar 10, 2010, 3:04:45 AM3/10/10
to tog_...@googlegroups.com
Sorry, I've never used resource_controller :(.

What kind of error do you have?. Are you trying to overwrite an
existing controller with r_c?. When do you get that error?.

al.

--
Alberto Molpeceres.
Linking Paths.

Simple registration for your events. http://www.stagehq.com

> --
> You received this message because you are subscribed to the Google Groups "tog_users" group.
> To post to this group, send email to tog_...@googlegroups.com.
> To unsubscribe from this group, send email to tog_users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tog_users?hl=en.
>
>

Dan B

unread,
Mar 10, 2010, 7:54:31 AM3/10/10
to tog_users
There was an error that would cause ruby to hang whenever the
environment was loaded (script/console, script/server, rake
db:migrate, etc.) As it turns out, the order of loading the gems is
very important. Load authlogic first, then r_c, then desert.

On Mar 10, 3:04 am, Alberto Molpeceres <alberto.molpece...@gmail.com>
wrote:


> Sorry, I've never used resource_controller :(.
>
> What kind of error do you have?. Are you trying to overwrite an
> existing controller with r_c?. When do you get that error?.
>
>    al.
>
> --
> Alberto Molpeceres.
> Linking Paths.
>

> Simple registration for your events.http://www.stagehq.com

Alberto Molpeceres

unread,
Mar 10, 2010, 7:59:05 AM3/10/10
to tog_...@googlegroups.com
On Wed, Mar 10, 2010 at 1:54 PM, Dan B <dan....@gmail.com> wrote:
> There was an error that would cause ruby to hang whenever the
> environment was loaded (script/console, script/server, rake
> db:migrate, etc.)  As it turns out, the order of loading the gems is
> very important.  Load authlogic first, then r_c, then desert.
>

Aha. Have you seen the "require 'desert" in config/environment.rb
before initializing the app?. After setting that order... does the
application work properly?

al.

Dan B

unread,
Mar 10, 2010, 9:17:47 AM3/10/10
to tog_users
I did see that, but I ended up removing it and keeping the config.gem
'desert' line. Otherwise, ruby hangs when it loads the r_c gem.

Once you load the gems in the right order, the application works
(although I'm still ironing out minor routing issues).

On Mar 10, 7:59 am, Alberto Molpeceres <alberto.molpece...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages