https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-08-31T12:40:39ZRedmineRedmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=198702010-08-31T12:40:39ZEtienne Massip
<ul></ul><p>Rails 3 final is out (<a class="external" href="http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done">http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done</a>) !</p>
<p>Someone already did the job : <a class="external" href="http://github.com/jeremy/redmine">http://github.com/jeremy/redmine</a> !</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=217372010-10-25T15:00:13ZEric Davis
<ul><li><strong>Assignee</strong> deleted (<del><i>Eric Davis</i></del>)</li></ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=226942010-11-25T13:19:32ZLuiz Picanço
<ul></ul><p>Any news about this ?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=230312010-12-05T15:57:23ZJohn Yani
<ul></ul><p>1.2.0 will stick with 2.3.10 (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Upgrade to Rails 2.3.11 (Closed)" href="https://www.redmine.org/issues/6887">#6887</a>)</p>
<p>Maybe after 1.2.0 release something will be clearer. What is engines support BTW?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=230442010-12-06T11:30:21ZEric Thomas
<ul></ul><p>John Yani wrote:</p>
<blockquote>
<p>1.2.0 will stick with 2.3.10 (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Upgrade to Rails 2.3.11 (Closed)" href="https://www.redmine.org/issues/6887">#6887</a>)</p>
<p>Maybe after 1.2.0 release something will be clearer. What is engines support BTW?</p>
</blockquote>
<p>The next release of rails (3.1) will have engines support.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=230462010-12-06T11:32:41ZFelix Schäfer
<ul></ul><p>Eric Thomas wrote:</p>
<blockquote>
<p>The next release of rails (3.1) will have engines support.</p>
</blockquote>
<p>Source/link? I fear they won't work exactly like the ones in 2.3 did, i.e. we still have to evaluate exactly what changes and how that affects us.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=230482010-12-06T11:53:35ZJean-Baptiste Barth
<ul></ul><p>Sources: <a href="http://rails-engines.org/" class="external">rails-engines site</a>, <a href="http://piotrsarnacki.com/2010/09/14/mountable-engines/" class="external">the blog of Piotr Sarnacki</a>, and I've got some bookmarks about the transition at home.</p>
What's sure for now:
<ul>
<li>Rails 3.0 supports <em>a kind of</em> Engines, but there's no mechanism for migrations, nor copying assets automatically (nor overriding views iirc) ; for sure they're not useable in Redmine at this point</li>
<li>Rails 3.1 Engines will support these kind of things (needs to be precised I know), but all documentation I read on Rails3' engines makes me think that plugin developers would have to package their plugin as a gem</li>
<li>Redmine cannot support Rails 2.3.x <em>and</em> Rails 3.x at the same time :)</li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=252312011-02-16T09:11:02ZEtienne Massip
<ul></ul><p>Just a note about .xml format : Rails 3 does not include Builder anymore, it's now one of its dependencies.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=267942011-03-23T07:58:00ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>Rails support</i></li></ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=291682011-05-24T15:03:18ZEtienne Massip
<ul></ul><p>Jean-Baptiste Barth wrote:</p>
<blockquote>
<ul>
<li>Rails 3.0 supports a kind of Engines, but there's no mechanism for migrations, nor copying assets automatically (nor overriding views iirc) ; for sure they're not useable in Redmine at this point</li>
<li>Rails 3.1 Engines will support these kind of things (needs to be precised I know), but all documentation I read on Rails3' engines makes me think that plugin developers would have to package their plugin as a gem</li>
</ul>
</blockquote>
<p>Indeed, Rails 3.1 RC is out and supports migrations as well as moutable apps, see <a class="external" href="http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate">http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate</a>.</p>
<p>Notes- :</p>
<p>Rails 3 applications include a Gemfile and support the use of Bundler (see <a class="external" href="http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done">http://weblog.rubyonrails.org/2010/8/29/rails-3-0-it-s-done</a>).<br />Rails 3.1 default scripting lib is now jQuery instead of Prototype.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=299062011-06-14T14:00:06ZFabian Becker
<ul></ul><p>Is there any update on migrating to Rails 3.x? It's becoming a pain maintaining Redmine as it currently is. Upgrading to 3.0/3.1RC would definitely improve the development process.</p>
<p>I do understand that you are having trouble loosing compatibility to lots of good Redmine plugins, so I suggest you start Redmine + Rails 3.1RC development on a seperate branch and publish Redmine for both Rails versions in a transitional period (maybe 1 year?) giving all plugin developers time to migrate their plugins to a Rails Engine.</p>
<p>Any thoughts?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=299072011-06-14T14:13:20ZEtienne Massip
<ul><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul><p>Fabian Becker wrote:</p>
<blockquote>
<p>It's becoming a pain maintaining Redmine as it currently is.</p>
</blockquote>
<p>Can't see why ?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=300872011-06-20T11:01:15ZToshi MARUYAMA
<ul></ul>I merged trunk <a class="changeset" title="Merged r6096 from trunk. pt-BR translation update by Enderson Maia. Better translation to keep ..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/6097">r6097</a> and following forks.
<ul>
<li><a class="external" href="https://github.com/goncalossilva/redmine">https://github.com/goncalossilva/redmine</a></li>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3-merged">https://github.com/marutosi/redmine/tree/rails3-merged</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/13077ffdba5150e95a2a0d70eb6135ead8ed254c">https://github.com/marutosi/redmine/commit/13077ffdba5150e95a2a0d70eb6135ead8ed254c</a></li>
</ul></li>
</ul>
I rearranged revisions.
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110620">https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110620</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110620/changeset/b1cc0367a6b0">https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110620/changeset/b1cc0367a6b0</a></li>
</ul>
</li>
<li><a class="external" href="https://github.com/marutosi/redmine/commits/rails3-straight-20110620">https://github.com/marutosi/redmine/commits/rails3-straight-20110620</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/b91eafdb008b0f0b3ff6ab830c9d07cfe393c341">https://github.com/marutosi/redmine/commit/b91eafdb008b0f0b3ff6ab830c9d07cfe393c341</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=301582011-06-22T10:20:20ZToshi MARUYAMA
<ul></ul><p>I updated revisions.</p>
<a name="Merged"></a>
<h3 >Merged<a href="#Merged" class="wiki-anchor">¶</a></h3>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3-merged">https://github.com/marutosi/redmine/tree/rails3-merged</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/3e126b55cf6895fc923fbf2e3aeadda2d1d54dfa">https://github.com/marutosi/redmine/commit/3e126b55cf6895fc923fbf2e3aeadda2d1d54dfa</a></li>
</ul></li>
</ul>
<a name="Straight-revisions"></a>
<h3 >Straight revisions<a href="#Straight-revisions" class="wiki-anchor">¶</a></h3>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commits/rails3-straight-20110622">https://github.com/marutosi/redmine/commits/rails3-straight-20110622</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/58374b477dd99b7df905b6fdb881aaf45185acf2">https://github.com/marutosi/redmine/commit/58374b477dd99b7df905b6fdb881aaf45185acf2</a></li>
</ul>
</li>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110622">https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110622</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110622/changeset/caeaaabe8709">https://bitbucket.org/marutosi/redmine-rails3-bb-straight-20110622/changeset/caeaaabe8709</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=301722011-06-22T18:08:19ZEtienne Massip
<ul></ul><p>You should try to make it work straight with Rails 3.1 (rc4 is the last release) since (I guess) Redmine will never run with 3.0 due to the lack of engine support.</p>
<p>Moreover, you might detect and report some Rails 3.1 rc issues whic could be fixed before release time, making it easier to integrate with RM.</p>
<p>BTW, do you run Rails 3 RM with Ruby 1.9 ?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=302942011-06-26T22:53:03ZToshi MARUYAMA
<ul></ul><p>I start to target Rails 3.1.</p>
<a name="Merged"></a>
<h3 >Merged<a href="#Merged" class="wiki-anchor">¶</a></h3>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-merged">https://github.com/marutosi/redmine/tree/rails3.1-merged</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/d8b96c046d342b82273aa0d63a36fea91b3ed200">https://github.com/marutosi/redmine/commit/d8b96c046d342b82273aa0d63a36fea91b3ed200</a></li>
</ul></li>
</ul>
<a name="Straight-revisions"></a>
<h3 >Straight revisions<a href="#Straight-revisions" class="wiki-anchor">¶</a></h3>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-bb">https://bitbucket.org/marutosi/redmine-rails3.1-bb</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-bb/changeset/fb582ad0e5e3">https://bitbucket.org/marutosi/redmine-rails3.1-bb/changeset/fb582ad0e5e3</a></li>
</ul>
</li>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-20110625">https://github.com/marutosi/redmine/tree/rails3.1-20110625</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/443313972d57f378197585498690c5f5f22cd4c6">https://github.com/marutosi/redmine/commit/443313972d57f378197585498690c5f5f22cd4c6</a></li>
</ul></li>
</ul>
The biggest issue is that ActionDispatch::Routing::Routes at <strong>config/routes.rb</strong> removed on Rails 3.1.
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-bb/changeset/e8800779ffb0">https://bitbucket.org/marutosi/redmine-rails3.1-bb/changeset/e8800779ffb0</a></li>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/e864d6dc582ac42aa1ef5d25b7c7810653466ff8">https://github.com/marutosi/redmine/commit/e864d6dc582ac42aa1ef5d25b7c7810653466ff8</a></li>
</ul>
<p>With dummy config/routes.rb, this revisions can boot with "ruby script/rails server",<br />and run "rake test:units".</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=308552011-07-19T09:14:10ZEtienne Massip
<ul></ul><p>RoR team is organizing a hack fest for 3.1 : <a class="external" href="http://weblog.rubyonrails.org/2011/7/14/rails-3-1-hackfest">http://weblog.rubyonrails.org/2011/7/14/rails-3-1-hackfest</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=316162011-08-22T06:34:29ZToshi MARUYAMA
<ul></ul><p>I rebased on <a class="changeset" title="remove trailing white-spaces from app/models/tracker.rb." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/6523">r6523</a>.</p>
Git:
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commits/rails3.1-straight-20110822">https://github.com/marutosi/redmine/commits/rails3.1-straight-20110822</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/5f46bcc5ad70db3907a81312c42bff09b93b305d">https://github.com/marutosi/redmine/commit/5f46bcc5ad70db3907a81312c42bff09b93b305d</a></li>
</ul></li>
</ul>
Mercurial:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git/changeset/1d5fca5d898e">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git/changeset/1d5fca5d898e</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=316622011-08-22T23:32:22ZToshi MARUYAMA
<ul></ul><p>I success to show main menu on Rails 3.1.</p>
<p>Git:</p>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commits/rails3.1-straight-20110822">https://github.com/marutosi/redmine/commits/rails3.1-straight-20110822</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/f203473b56b14e2e2d2cbca359e1345389c8b2b5">https://github.com/marutosi/redmine/commit/f203473b56b14e2e2d2cbca359e1345389c8b2b5</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git/changeset/d68bc29b957b">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20110822-hg-git/changeset/d68bc29b957b</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=316652011-08-23T05:32:07ZToshi MARUYAMA
<ul></ul><p><a class="external" href="http://mrjaba.posterous.com/ruby-news-roundup-06-04-2011">http://mrjaba.posterous.com/ruby-news-roundup-06-04-2011</a></p>
<blockquote>
<p>:rhtml and :rxml were finally removed as template handlers.</p>
</blockquote> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=316902011-08-23T15:10:20ZEtienne Massip
<ul></ul><p>Nice job on routes =)</p>
<p>Got some nice reading for you: <a class="external" href="http://www.h-online.com/open/features/From-Rails-2-3-to-3-0-1285884.html">http://www.h-online.com/open/features/From-Rails-2-3-to-3-0-1285884.html</a></p>
<p><em>Edit</em>: permalink: <a class="external" href="http://h-online.com/-1285884">http://h-online.com/-1285884</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=316942011-08-23T16:03:57ZLuiz Picanço
<ul></ul><p>Interesting article !</p>
<p>Etienne Massip wrote:</p>
<blockquote>
<p>Nice job on routes =)</p>
<p>Got some nice reading for you: <a class="external" href="http://www.h-online.com/open/features/From-Rails-2-3-to-3-0-1285884.html">http://www.h-online.com/open/features/From-Rails-2-3-to-3-0-1285884.html</a></p>
<p><em>Edit</em>: permalink: <a class="external" href="http://h-online.com/-1285884">http://h-online.com/-1285884</a></p>
</blockquote> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=317442011-08-25T08:52:00ZDavid Bennett
<ul></ul><p>If you need any direction, the Spree project has great 3.0 and 3.1 support: <a class="external" href="http://spreecommerce.com/blog">http://spreecommerce.com/blog</a></p>
<p>The "Extension" system they have is great as you just add a line in your Gemfile that points to a github project and vola! extra features :)</p>
<p>BDQ has also created Deface, A view editor that alters views based on css rules: <a class="external" href="https://github.com/railsdog/deface">https://github.com/railsdog/deface</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=319032011-08-31T07:08:28ZEtienne Massip
<ul></ul><p>3.1 released 3 hours ago: <a class="external" href="http://twitter.com/#!/rails/status/108740744306634752">http://twitter.com/#!/rails/status/108740744306634752</a></p>
<p>Release notes: <a class="external" href="http://guides.rubyonrails.org/3_1_release_notes.html">http://guides.rubyonrails.org/3_1_release_notes.html</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=319182011-08-31T14:19:12ZEtienne Massip
<ul></ul><p>Another article from the H: <a class="external" href="http://h-online.com/-1285887">http://h-online.com/-1285887</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=320962011-09-09T03:33:00ZAlexandre de Oliveira
<ul></ul><p>So, is there any official announcement regarding 3.x support? A plan? Redmine 2.0? I found nothing on Wiki. Is there anyone leading the efforts to this end?</p>
<p>Because I'd like to contribute to make Redmine Rails 3.x compatible. It's not clear if there's a branch for it. I guess any patch regarding this shouldn't go to master branch, isn't it? It seems Toshi is already doing some work on this. How could I be of help regarding this matter?</p>
<p>Second, don't you agree this is not the correct place for posting about these Rails 3.1's new features articles, like Etienne's?</p>
<p>Thank you.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=328852011-10-16T04:48:14ZToshi MARUYAMA
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>40</i></li></ul><p>I rebased on <a class="changeset" title="Restored valid test part removed with r7625 (#8371)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7627">r7627</a>.</p>
Git:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-git/changeset/b518355cf567">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-git/changeset/b518355cf567</a></li>
</ul></li>
</ul>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20111015">https://github.com/marutosi/redmine/tree/rails3.1-straight-20111015</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/b518355cf567a6aea40f463a879c752a308c1e32">https://github.com/marutosi/redmine/commit/b518355cf567a6aea40f463a879c752a308c1e32</a></li>
</ul></li>
</ul>
Mercurial:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-hg-git/changeset/230bb3836ed1">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111015-hg-git/changeset/230bb3836ed1</a></li>
</ul></li>
</ul>
<p>If you run with current database of Redmine 1.2 on Rails 2.3.11,<br />you need to run "rake db:migrate".</p>
<p>In order to run tests,<br />you need to install object_daddy for Rails 3.1.<br /><pre>
ruby script/rails plugin install git://github.com/awebneck/object_daddy.git
</pre></p>
The revisions are from following repositories.
<ul>
<li><a class="external" href="https://github.com/redox/redmine">https://github.com/redox/redmine</a></li>
<li><a class="external" href="https://github.com/mhanne/chiliproject/tree/rails-3.1">https://github.com/mhanne/chiliproject/tree/rails-3.1</a></li>
<li><a class="external" href="https://github.com/thegcat/chiliproject/tree/rails-3.1">https://github.com/thegcat/chiliproject/tree/rails-3.1</a></li>
</ul>
<p>Git and Mercurial revisions are synchronized by <a href="http://hg-git.github.com/" class="external">hg-git</a> .<br />If you want to improve it, you can choose what you like.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=336322011-11-11T02:18:24ZDavid Bennett
<ul></ul><p>As this is now Rails 3.1... and a lot of things will break in the upgrade anyway.</p>
<p>Would it be a good idea to change this to a mountable engine?<br />(or even a stranded engine so that users can upgrade by just changing the version in the Gemfile.)</p>
<p>I have experience and can help out if you go down this path.</p>
<p>CON: You may want to namespace everything so it plays nice with other mountable engines.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=336352011-11-11T05:46:23ZFelix Schäfer
<ul></ul><p>David, do you have experience with the 3.1 full engines?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=337222011-11-14T02:47:56ZDavid Bennett
<ul></ul><p>Felix Schäfer wrote:</p>
<blockquote>
<p>David, do you have experience with the 3.1 full engines?</p>
</blockquote>
<p>If by full engines you mean ones with there own logic/models/controllers/migrations that can be added by just adding something to your Gemfile.</p>
<p>Then yes, I use them where ever possible :)</p>
<p>Though I don't have all that much experience with mountable ones yet.. as 3.1 is still new and I don't really have any bread-n-butter projects in my day job that could use the functionality.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=337232011-11-14T06:26:45ZFelix Schäfer
<ul></ul><p>David Bennett wrote:</p>
<blockquote>
<p>Felix Schäfer wrote:</p>
<blockquote>
<p>David, do you have experience with the 3.1 full engines?</p>
</blockquote>
<p>If by full engines you mean ones with there own logic/models/controllers/migrations that can be added by just adding something to your Gemfile.</p>
<p>Then yes, I use them where ever possible :)</p>
<p>Though I don't have all that much experience with mountable ones yet.. as 3.1 is still new and I don't really have any bread-n-butter projects in my day job that could use the functionality.</p>
</blockquote>
<p>No, that's full engines vs. mountable apps. Mountable apps are self-contained and referenced only in the parent routes.rb to tell which "top-level" URI the mountable app has. Full engines are "nearer" to the 2.3 engines in that they are loaded with the main app, have access to all the same models, controllers, and everything (mountable apps are fully segregated). Both types are/can be packaged as gems though.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=342362011-11-28T05:00:38ZToshi MARUYAMA
<ul></ul><p>I rebased on <a class="changeset" title="Adds test for r7961 fix (#9672)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7962">r7962</a>.</p>
<p>Git:</p>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-git/changeset/25af42e581e9">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-git/changeset/25af42e581e9</a></li>
</ul></li>
</ul>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20111128">https://github.com/marutosi/redmine/tree/rails3.1-straight-20111128</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/25af42e581e9eb1b83253130e661edcfc50cd810">https://github.com/marutosi/redmine/commit/25af42e581e9eb1b83253130e661edcfc50cd810</a></li>
</ul></li>
</ul>
Mercurial:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-hg-git/changeset/e3236691b1c5">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111128-hg-git/changeset/e3236691b1c5</a></li>
</ul></li>
</ul>
Revisions are from a following repository.
<ul>
<li><a class="external" href="https://github.com/paneidos/redmine">https://github.com/paneidos/redmine</a></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=342542011-11-28T15:28:46ZToshi MARUYAMA
<ul></ul><p>I rebased on <a class="changeset" title="Rails3: helper: html_safe for robot_exclusion_tag" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7967">r7967</a>.</p>
<p>Git:</p>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-git/changeset/98b79bc74907">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-git/changeset/98b79bc74907</a></li>
</ul>
</li>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20111129">https://github.com/marutosi/redmine/tree/rails3.1-straight-20111129</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/98b79bc74907735b148d45e5e9ccb17a31656f10">https://github.com/marutosi/redmine/commit/98b79bc74907735b148d45e5e9ccb17a31656f10</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-hg-git/changeset/70aa2e5132cc">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111129-hg-git/changeset/70aa2e5132cc</a></li>
</ul></li>
</ul>
<p>I adapted <a class="changeset" title="Makes labelled_tabular_form_for accept different signatures." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/7900">r7900</a> labelled_tabular_form_for.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=344342011-12-05T10:06:42ZToshi MARUYAMA
<ul><li><strong>% Done</strong> changed from <i>40</i> to <i>50</i></li></ul><p>I rebased on <a class="changeset" title="Removed ARCondition." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8089">r8089</a>.</p>
Git:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-git/changeset/f63cfecfc970">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-git/changeset/f63cfecfc970</a></li>
</ul>
</li>
<li><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20111205">https://github.com/marutosi/redmine/tree/rails3.1-straight-20111205</a>
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/f63cfecfc9708cfd3f838b8444071da3d50a1e10">https://github.com/marutosi/redmine/commit/f63cfecfc9708cfd3f838b8444071da3d50a1e10</a></li>
</ul></li>
</ul>
Mercurial:
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-hg-git</a>
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-hg-git/changeset/adeada76a040">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111205-hg-git/changeset/adeada76a040</a></li>
</ul></li>
</ul>
<a name="Changes"></a>
<h2 >Changes<a href="#Changes" class="wiki-anchor">¶</a></h2>
<ul>
<li>rename css to css.erb</li>
<li>use asset_path instead of hard-coded path</li>
</ul>
<pre>
<code class="diff syntaxhl"><span class="gh">diff --git a/app/assets/stylesheets/scm.css.erb b/app/assets/stylesheets/scm.css.erb
</span><span class="gd">--- a/app/assets/stylesheets/scm.css.erb
</span><span class="gi">+++ b/app/assets/stylesheets/scm.css.erb
</span><span class="p">@@ -9,7 +9,7 @@</span>
li.change {
list-style-type:none;
<span class="gd">- background-image: url(../images/bullet_black.png);
</span><span class="gi">+ background-image: url(<%= asset_path "bullet_black.png" %>);
</span> background-position: 1px 1px;
background-repeat: no-repeat;
padding-top: 1px;
</code><br /></pre>
Revisions are from following repository.
<ul>
<li><a class="external" href="https://github.com/escline/redmine">https://github.com/escline/redmine</a></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=349372011-12-21T00:22:26ZToshi MARUYAMA
<ul></ul><p>I rebased on <a class="changeset" title="Rails3: rename sample_plugin .rhtml to .html.erb (#6317, #4796) :rhtml and :rxml were finally re..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8304">r8304</a>.</p>
<p>Git:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git/changeset/10734937ddd8">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git/changeset/10734937ddd8</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git/changeset/c62200edd4d7">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-git/changeset/c62200edd4d7</a></li>
</ul></li>
</ul>
<p><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20111220">https://github.com/marutosi/redmine/tree/rails3.1-straight-20111220</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/10734937ddd8">https://github.com/marutosi/redmine/commit/10734937ddd8</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/c62200edd4d7639da893a4c3d5ea6b987daf5b98">https://github.com/marutosi/redmine/commit/c62200edd4d7639da893a4c3d5ea6b987daf5b98</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git/changeset/97f974aea9ea">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git/changeset/97f974aea9ea</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git/changeset/af9fdd89cd7d">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20111220-hg-git/changeset/af9fdd89cd7d</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=350922012-01-03T09:01:07ZToshi MARUYAMA
<ul><li><strong>% Done</strong> changed from <i>50</i> to <i>60</i></li></ul><p>I rebased on <a class="changeset" title="code layout clean up app/views/wiki/index.html.erb" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8480">r8480</a>.<br />Almost all routing tests pass.</p>
<p>Git:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git/changeset/c44c5c55c9d2">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git/changeset/c44c5c55c9d2</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git/changeset/90bda5801f9d">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-git/changeset/90bda5801f9d</a></li>
</ul></li>
</ul>
<p><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20120103">https://github.com/marutosi/redmine/tree/rails3.1-straight-20120103</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/c44c5c55c9d2">https://github.com/marutosi/redmine/commit/c44c5c55c9d2</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/90bda5801f9d">https://github.com/marutosi/redmine/commit/90bda5801f9d</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git/changeset/a940b29a8193">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git/changeset/a940b29a8193</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git/changeset/d4fc04c4ef05">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120103-hg-git/changeset/d4fc04c4ef05</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=353212012-01-12T08:29:48ZToshi MARUYAMA
<ul><li><strong>% Done</strong> changed from <i>60</i> to <i>70</i></li></ul><p>I rebased on <a class="changeset" title="Adds assertions to issue destroy tests." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8633">r8633</a>.<br />route.rb is all new Rails3 format.</p>
<p>Git:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git/changeset/9b87ac4f7d4a">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git/changeset/9b87ac4f7d4a</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc2
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git/changeset/8ef3aa076ac3">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-git/changeset/8ef3aa076ac3</a></li>
</ul></li>
</ul>
<p><a class="external" href="https://github.com/marutosi/redmine/tree/rails3.1-straight-20120111">https://github.com/marutosi/redmine/tree/rails3.1-straight-20120111</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/9b87ac4f7d4a">https://github.com/marutosi/redmine/commit/9b87ac4f7d4a</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc2
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/8ef3aa076ac3">https://github.com/marutosi/redmine/commit/8ef3aa076ac3</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git/changeset/38da0d316f07">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git/changeset/38da0d316f07</a></li>
</ul>
</li>
<li>Rails 3.2.0.rc2
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git/changeset/827d62056e93">https://bitbucket.org/marutosi/redmine-rails3.1-straight-20120111-hg-git/changeset/827d62056e93</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=355292012-01-24T18:50:32ZJohn Yani
<ul></ul><p>Rails 3.2.0 is <a href="http://weblog.rubyonrails.org/2012/1/20/rails-3-2-0-faster-dev-mode-routing-explain-queries-tagged-logger-store" class="external">out</a></p>
<p>Is there any work break down structure of work required to complete porting Redmine to Rails 3? Are there any routine tasks that unexperienced programmer could help with?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=360122012-02-13T10:41:43ZToshi MARUYAMA
<ul></ul><p>I rebased on <a class="changeset" title="Prevent ActiveRecord::StaleObjectError in Issue#reschedule_after (#7920)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/8864">r8864</a>.</p>
<p>Changes:</p>
<ul>
<li>update Rails 3.2.1.</li>
<li>rails-dev-tweaks supports Rails 3.2.</li>
</ul>
<p>Git:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git/changeset/b024f722f1e7">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git/changeset/b024f722f1e7</a></li>
</ul>
</li>
<li>Rails 3.2.1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git/changeset/9ff1ec404049">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-git/changeset/9ff1ec404049</a></li>
</ul></li>
</ul>
<p><a class="external" href="https://github.com/marutosi/redmine/commits/rails3-straight-20120213">https://github.com/marutosi/redmine/commits/rails3-straight-20120213</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/b024f722f1e7">https://github.com/marutosi/redmine/commit/b024f722f1e7</a></li>
</ul>
</li>
<li>Rails 3.2.1
<ul>
<li><a class="external" href="https://github.com/marutosi/redmine/commit/9ff1ec404049">https://github.com/marutosi/redmine/commit/9ff1ec404049</a></li>
</ul></li>
</ul>
<p>Mercurial:</p>
<p><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git</a></p>
<ul>
<li>Rails 3.1.3
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git/changeset/761b7f104d6d">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git/changeset/761b7f104d6d</a></li>
</ul>
</li>
<li>Rails 3.2.1
<ul>
<li><a class="external" href="https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git/changeset/b57dc3557b3c">https://bitbucket.org/marutosi/redmine-rails3-straight-20120213-hg-git/changeset/b57dc3557b3c</a></li>
</ul></li>
</ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=363992012-02-29T12:19:06ZSridhar P
<ul></ul><p>I would like to work on this. I am thinking in the lines of forking on github and submitting pull requests whenever I have completed a significant task. Talking of tasks, is there any list of issues/to-do's that I can work on?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=364512012-03-02T19:18:14ZJohn Yani
<ul></ul><p>Sridhar P wrote:</p>
<blockquote>
<p>I would like to work on this. I am thinking in the lines of forking on github and submitting pull requests whenever I have completed a significant task. Talking of tasks, is there any list of issues/to-do's that I can work on?</p>
</blockquote>
<p>I think you can start with cloning and setting up test environment to see what doesn't work. Then if you manually tested all features and everything seems to work, you can run redmine tests and see if there are any failures. I there are no any, you're done.</p>
<p>Then you can think of how to enable users to use Redmine with both Rails 2 and Rails 3. As of now the work is done/coordinated by Toshi. Seems like every week he rebases his work on the latest revision from svn trunk. AFAIK, there are no any todo lists. But you can look into git/hg log. There are many commits marked as "TODO", so you can review these patches to see what's wrong with them.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=364522012-03-02T19:39:04ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I have a working copy that runs and passes the full tests suite with Rails 3.1. There's some work to be done in order to provide the current features for Redmine plugins (migrations, view overriding, assets...) but still, most plugins won't be compatible out of the box. And honestly, I'm a bit disappointed with the performance. Redmine is 1.5x to 2x slower than with Rails 2.3. With ruby 1.9.3, it barely runs as fast as current trunk with Rails 2.3 + ruby 1.8.7.</p>
<blockquote>
<p>Then you can think of how to enable users to use Redmine with both Rails 2 and Rails 3.</p>
</blockquote>
<p>That's not really an option. There are too many changes in Rails 3 to support both versions with the same code base.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=364532012-03-02T19:46:43ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/7267">response_time.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7267/response_time.png">response_time.png</a> added</li></ul><p>Here are the results of my quick performance tests (Rails 2.3 vs. Rails 3.2):</p>
<p><img src="https://www.redmine.org/attachments/download/7267/response_time.png" alt="" /></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=364562012-03-02T21:19:03ZToshi MARUYAMA
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>I have a working copy that runs and passes the full tests suite with Rails 3.1.</p>
</blockquote>
<p>Could you create branch and commit to it such as <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/sandbox/rails-2.3">source:sandbox/rails-2.3</a> ?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=365622012-03-07T01:43:27ZJohn Yani
<ul></ul><p>Did anybody find out how to get wiki working? I've got an error:</p>
<p>can't write unknown attribute `versioned_type'<br />activerecord (3.2.1) lib/active_record/attribute_methods/write.rb:34:in `write_attribute'<br />activerecord (3.2.1) lib/active_record/attribute_methods/dirty.rb:67:in `write_attribute'<br />activerecord (3.2.1) lib/active_record/attribute_methods.rb:31:in `[]='<br />vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:383:in `clone_versioned_model'<br />vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:303:in `save_version_on_create'<br />app/controllers/wiki_controller.rb:154:in `update'</p>
<p>the problem is in the following line:</p>
<p>vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb<br />194: self.versioned_inheritance_column = options[:inheritance_column] || "versioned_#{inheritance_column}"</p>
<p>Somehow versioned_type column is missing.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=365862012-03-07T13:29:52ZJohn Yani
<ul></ul><p><strong>Update:</strong></p>
<p>Seems like it is because Redmine doesn't use rake tasks provided by acts_as_versioned: create_versioned_table and drop_versioned_table</p>
<p>So, I should add migration field for versioned_type myself</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=366202012-03-07T18:23:15ZJohn Yani
<ul></ul><p>Here is a patch to enable wiki editing in Rails 3.2.1 <a class="external" href="https://github.com/marutosi/redmine/pull/6">https://github.com/marutosi/redmine/pull/6</a></p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=367282012-03-10T14:03:04ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Target version</strong> changed from <i>Candidate for next major release</i> to <i>2.0.0</i></li></ul> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=367302012-03-10T15:41:59ZTerence Mill
<ul></ul><p>Can u explain ur results? For the first look rails 2.3 and ruby 1.9.3 performns best, and not the newest stack with rails 3.</p>
<p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>Here are the results of my quick performance tests (Rails 2.3 vs. Rails 3.2):</p>
<p><img src="https://www.redmine.org/attachments/download/7267/response_time.png" alt="" /></p>
</blockquote> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=367332012-03-10T17:55:37ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>Can u explain ur results? For the first look rails 2.3 and ruby 1.9.3 performns best, and not the newest stack with rails 3.</p>
</blockquote>
<p>Indeed, Rails 2.3 performs best as mentionned above. The graph shows the average response times in seconds for a few actions (assets are not involved here). Not much more to explain...</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=367342012-03-10T20:25:03ZJohn Yani
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>Can u explain ur results? For the first look rails 2.3 and ruby 1.9.3 performns best, and not the newest stack with rails 3.</p>
</blockquote>
<p>Here is the detailed explanation:<br /><a class="external" href="http://bibwild.wordpress.com/2011/07/12/more-thoughts-on-unbearably-slow-rails3/">http://bibwild.wordpress.com/2011/07/12/more-thoughts-on-unbearably-slow-rails3/</a><br />Shortly, it is because of extra ruby garbage collection, caused by increased size of the call stack in Rails 3.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374322012-04-15T04:45:15ZAlex Shulgin
<ul></ul><p>Hello good sirs.</p>
<p>Any chance of getting this done finally, especially in light of this (rails 2.3 no longer receives security updates from the core team): <a class="external" href="https://groups.google.com/d/msg/rubyonrails-talk/ZzL90ec7iAQ/368GA-TeQ6AJ">https://groups.google.com/d/msg/rubyonrails-talk/ZzL90ec7iAQ/368GA-TeQ6AJ</a> ?</p>
<p>--<br />Regards,<br />Alex</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374382012-04-15T14:15:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>The upgrade to Rails 3.0 is planned for Redmine 2.0 that should be the next major release.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374822012-04-16T22:59:28ZTerence Mill
<ul></ul><p>Really waiting for this Release, especially Prototype.js has been replaced with jQuery for ajax calls.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374832012-04-16T23:52:30ZToshi MARUYAMA
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>Really waiting for this Release, especially Prototype.js has been replaced with jQuery for ajax calls.</p>
</blockquote>
<p>"prototype-rails" and "prototype_legacy_helper" provide compatibility.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374852012-04-17T06:45:34ZEtienne Massip
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>Really waiting for this Release, especially Prototype.js has been replaced with jQuery for ajax calls.</p>
</blockquote>
<p>What difference does this make?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374882012-04-17T07:36:32ZOnno van der Straaten
<ul></ul><p>Etienne Massip wrote:</p>
<blockquote>
<p>Terence Mill wrote:</p>
<blockquote>
<p>Really waiting for this Release, especially Prototype.js has been replaced with jQuery for ajax calls.</p>
</blockquote>
<p>What difference does this make?</p>
</blockquote>
<p>This is also one of the things I would like to see in Redmine 2.0. Upgrading to Rails 3 however does not imply that Redmine 2.0 will use JQuery. I personally doubt that this effort is also about migrating to JQuery.</p>
<p>If you are using Redmine as is it doesn't matter what framework is being used. But if you want to extend Redmine, it does. So for example I added functionality which uses a JQuery Slides (<a class="external" href="http://slidesjs.com/">http://slidesjs.com/</a>). Now my 'extended' Redmine installation uses JQuery and not Prototype for some pages. Using Prototype and JQuery in one website is of course not so nice but necessary because JQuery has a lot more to offer.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=374902012-04-17T08:00:09ZEtienne Massip
<ul></ul><p>Onno van der Straaten wrote:</p>
<blockquote>
<p>Using Prototype and JQuery in one website is of course not so nice but necessary because JQuery has a lot more to offer.</p>
</blockquote>
<p>Whatever, Redmine has not Javascript API, jQuery and Prototype can coexist very well and I can't see why using 2 tooling frameworks would be bad.</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=375182012-04-18T12:34:21ZTerence Mill
<ul></ul><p>Hmm i hoped we will get rid of prototype because we wanna integrate our SSo Solution for redmine (which is based on CAS) and the problem with redirect on ajax request direct after an revelidation attempt of the SSO gatway (a java servlet filter in front of web.xml war of a jruby redmine tomcat installation), this redirect of an XMLHttpRequest (fired by prototyp.js i think) is not understood by the browser. This leads to "nothing happening" in the application as long a non ajax request is triggered by the request caused by user click.<br />Our SSO Gateway in front of the redmine can understand jquery ajax requests and wraps them so that the redirect in the browser works. This does not work for prototype js.</p>
<p>There is no documentation where and how often ajax is used in redmine forms, else we could think about moving this urls by filter out of the sso secure area and workawound the problem.</p>
<p>Etienne Massip wrote:</p>
<blockquote>
<p>Terence Mill wrote:</p>
<blockquote>
<p>Really waiting for this Release, especially Prototype.js has been replaced with jQuery for ajax calls.</p>
</blockquote>
<p>What difference does this make?</p>
</blockquote> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=375202012-04-18T13:15:34ZEtienne Massip
<ul></ul><p>Terence Mill wrote:</p>
<blockquote>
<p>Our SSO Gateway in front of the redmine can understand jquery ajax requests and wraps them so that the redirect in the browser works. This does not work for prototype js.</p>
</blockquote>
<p>What is done with jQuery making the Ajax request understood that you can't do with Prototype?</p> Redmine - Feature #4796: Rails 3 supporthttps://www.redmine.org/issues/4796?journal_id=378042012-05-01T16:16:16ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>% Done</strong> changed from <i>70</i> to <i>100</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Please open a new ticket for any issue related to Rails3 support.</p>