Rails 2.3 support?

2 views
Skip to first unread message

Rob Sanheim

unread,
Mar 31, 2009, 3:58:55 PM3/31/09
to resources_controller
Hi

It looks like resources_controller does not work on rails 2.3...any
ideas on what the blockers are on that?

thanks,
Rob

http://thinkrelevance.com
http://runcoderun.com

Ian White

unread,
Mar 31, 2009, 4:04:42 PM3/31/09
to resources_...@googlegroups.com
Hi Rob,

Could you please post a stack trace, or description of your error?

Cheers,
Ian

Alexander Hoth

unread,
Apr 1, 2009, 5:03:34 AM4/1/09
to resources_...@googlegroups.com

Hi Rob,

It works well for me, so you may have an issue with something different? I
also add the controller to the routes definition. That solved some initial
problems with rails 2.3 pre-releases, so I keep using it like that:

Instead of

Map.resources :items

I always write

Map.resources :items, :controller => 'items'


Regards,
Alex

http://www.goldenhotelguide.com

Rob Sanheim

unread,
Apr 8, 2009, 4:54:50 PM4/8/09
to resources_...@googlegroups.com
On Tue, Mar 31, 2009 at 4:04 PM, Ian White <ian.w...@gmail.com> wrote:
>
> Hi Rob,
>
> Could you please post a stack trace, or description of your error?
>
> Cheers,
> Ian
>

Hi Ian

I'm pretty sure I figured out what it was. There was a call to

resources_controller :assessment_reports

The model AssessmentReport had been removed completely long ago, and
apparently the controller was just missed.

Dependency loading must have changed enough from Rails 2.1 to 2.3.2
that this raises in 2.3 but silently is fine in 2.1.

thanks,
Rob

Ian White

unread,
Apr 9, 2009, 4:16:21 AM4/9/09
to resources_...@googlegroups.com
Hi Rob,

Thanks for the follow up post.

In Rails 2.2 and onward, all application classes are loaded on server
start, which would have raised the missing class error.

Cheers,
Reply all
Reply to author
Forward
0 new messages