Forum: Ruby on Rails porting 1.1.6 to 1.2.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ae477ee7167a8775fe92ab921ffd7a42?d=identicon&s=25 Ra PM (rpm13)
on 2007-05-05 19:34
In porting an application from rails 1.1.6 to 1.2.3, I discovered that
the image directory has become the images directory.  But also some
other aspects of the map.image had to be changed.

Is there one central place where all these changes are listed so that I
could systematically port all aspects that are required?

Thanks
6e9db38e16957cc51cf9cee9de399249?d=identicon&s=25 dasil003 (Guest)
on 2007-05-05 20:04
(Received via mailing list)
The directory was always images.  As for other changes I don't know of
any listing of all the changes (you could of course browse through the
changelogs).  I've ported a number of apps over from 1.1.x to 1.2.x
and not run into any significant changes.  There were a few things
marked deprecated that I ran into like start_form_tag/end_form_tag,
but those were easy to clean up and didn't break anything.

1.2.2 had an issue with functional tests needing strings instead of
symbols for the session hash, but 1.2.3 fixed that.
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 Rick Olson (Guest)
on 2007-05-06 01:49
(Received via mailing list)
On 5/5/07, Ra PM <rails-mailing-list@andreas-s.net> wrote:
>
> In porting an application from rails 1.1.6 to 1.2.3, I discovered that
> the image directory has become the images directory.  But also some
> other aspects of the map.image had to be changed.
>
> Is there one central place where all these changes are listed so that I
> could systematically port all aspects that are required?

Each Rails lib (ActiveRecord, ActionPack, etc) has a CHANGELOG file for
this.

--
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com
Ae477ee7167a8775fe92ab921ffd7a42?d=identicon&s=25 Ra PM (rpm13)
on 2007-05-06 07:07
Well Ive made a little progress. I found that the rails version could be
set in config.rb.  And so by switching between 1.1.6 and 1.2.3 I can
work out whats changing where.  Laborious but reading changelogs is
worse :-)

The html generated with 1.2.3 (which is not working) is

<td width="170"><img alt="Woodruff Avenue" height="128"
src="/images/http%3A%2F%2Flocalhost%3A3000%2Fimages%2F26" width="170"
/></td>

The html generated with 1.1.6 (which is working) is:
<td width="170"><img alt="Woodruff Avenue" height="128"
src="http://localhost:3000/images/26.png" width="170" /></td>

Any clues which rails internal function is generating this?  Its
something that image_tag drills down into.

Thanks
Ef0db53920b243d6758c2f6b1306df0d?d=identicon&s=25 Steve Ross (cwd)
on 2007-05-06 08:26
It would be helpful to see not just what's being generated but also the
rhtml and any other useful bits you can contribute. It seems url_encode
is being called on the string passed as the 'src' attribute. By the way
h() is a shortcut for url_encode, so if you are used to writing <%=h
@image_src %> that's your problem.

Ra PM wrote:
> Well Ive made a little progress. I found that the rails version could be
> set in config.rb.  And so by switching between 1.1.6 and 1.2.3 I can
> work out whats changing where.  Laborious but reading changelogs is
> worse :-)
>
> The html generated with 1.2.3 (which is not working) is
>
> <td width="170"><img alt="Woodruff Avenue" height="128"
> src="/images/http%3A%2F%2Flocalhost%3A3000%2Fimages%2F26" width="170"
> /></td>
>
> The html generated with 1.1.6 (which is working) is:
> <td width="170"><img alt="Woodruff Avenue" height="128"
> src="http://localhost:3000/images/26.png" width="170" /></td>
>
> Any clues which rails internal function is generating this?  Its
> something that image_tag drills down into.
>
> Thanks
This topic is locked and can not be replied to.