Steve,

The best approach is to upgrade in steps.

1.2.3 -> 2.0
2.0 -> 2.1
2.1 -> 2.2
2.2 -> 2.3

you may have to use point releases if you can't figure out all that's changed. But 1.2.3 -> 2.3.8 is too much to bite off, in my opinion.

W

On 9/22/10 12:41 PM, SteveP wrote:
I am puzzled...

I am trying to upgrade an old project that used a very early release
of ActiveScaffold and Rails v1.2.3 and bring it forward to something
more modern, like the current ActiveScaffold release and maybe Rails
v2.3.8...  I know there are a lot of changes all at once, and coupled
with upgrading from an old TabNav to RailsWidgets->TabNav (but that is
working OK it seems), it is a lot to tackle.

I ran into an immediate problem, though, in that I'm not sure I
understand how things have substantially changed in the flow of logic
for active_scaffold.

This is a "travel" system used in-house at a non-profit organization.
It has trips, travelers, countries, fees, payments and so forth.  The
primary view is a listing of trips, and depending on a session
variable you are viewing either actual trips or templates of trips.

I used to have an "index" method that did a redirect_to either the
"trips" or "templates" method, which then set some variables and then
did a redirect_to a "listing" method that had a view that called the
render_scaffold call for the trips listing.

Now it is going into an endless loop between trips/listing/index/etc.
If I remove the index method this problem seems to be resolved, but
calling  the website/trips/listing page shows a scaffold view but
without any of the action links defined in the config section of the
trips controller.

I see in the docs that now there are statements in the routes.rb file
for the various active_scaffold controllers, but I suppose I don't
really want to use the entry in the routes (and in fact if I put it in
it cased me lots more problems):

   map resources :trips, :active_scaffold =>  true

Because I am trying and intending to control the flow of all the
actions myself, not having it totally be handle by the scaffolding
"magic".

The funny thing is that under trips, I have travelers, which have
countries, and the trip has fees, payments and so forth, and all of
these sub-pages are using active_scaffold and all seem to be working
fine.  It is only the top-level trips that is causing me problems.

If I bypass this main trip listing view problem, and call  website/
trips/show/xx to show trip xx, it brings up all the trip details, and
everything works perfectly with all sub-tabs and active_scaffolding.
I just cannot get the top-level trips listing to work. :(

Any thoughts on how to troubleshoot this?


--
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to