Package: rails Version: 1.1.6-1 Severity: normal
Hi, I decided to take a look at Ruby on Rails and Openlaszlo. I've successfully installed openlaszlo plugin (http://rubyforge.org/projects/laszlo-plugin/). When I try to generate an applet I get the following error: L> ./script/generate applet contacts applet exists app/views/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/contacts.rb identical test/unit/contacts_test.rb identical test/fixtures/contacts.yml exists db/migrate create db/migrate/001_create_contacts.rb dependency rest_controller exists app/controllers/ exists app/helpers/ exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/contacts.rb identical test/unit/contacts_test.rb identical test/fixtures/contacts.yml exists db/migrate Another migration is already named create_contacts: db/migrate/ 001_create_contacts.rb The problem is caused by migration generator. An exception is raised when migration with the same name already exists. Applet generator from openlaszlo plugin depends on model generator and on rest_controller generator which depends on model generator too. So you always get an exception and generator breaks. As I understand this code was submitted to RoR 1.1 and everything worked fine with RoR 1.0. The problem is not openlaszlo specific, I've found another report on RoR mailing list: http://lists.rubyonrails.org/pipermail/rails/2006-March/021749.html. Unfortunately there is no answer. I've fixed the applet generator to walk around the issue but I believe this problem should be fixed on RoR side. Regards, Dmitry -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-1-686 Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) Versions of packages rails depends on: ii liberb-ruby 2.0.4+ruby1.8.2-1 Tiny eRuby ii libpgsql-ruby1.8 0.7.1-9 PostgreSQL extension library for r ii libredcloth-ruby1.8 3.0.4-2 Textile module for Ruby 1.8 ii rake 0.7.1-1 a ruby build program ii rdoc 1.8.2-1 Generate documentation from ruby s ii ruby 1.8.2-1 An interpreter of object-oriented ii ruby1.8 1.8.5-2 Interpreter of object-oriented scr Versions of packages rails recommends: ii irb 1.8.2-1 Interactive Ruby (irb) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]