scaffold generator does not work in jruby on rails 1.0.0 rc2
------------------------------------------------------------

                 Key: JRUBY-973
                 URL: http://jira.codehaus.org/browse/JRUBY-973
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.0RC2
         Environment: Kubuntu linux, x86
            Reporter: Tomas Musil
            Assignee: Thomas E Enebo
            Priority: Blocker


originally tracked in netbeans issuezilla.
using bundled jruby 1.0.0 rc2 with current trunk version of netbeans + mysql 
5.0 DB  (and getting the same result when using this jruby directly from shell 
as well as from netbeans):

1) create rails app
2) edit database.yml properly to setup your db
3) jrubynb script/generate scaffold post hello
(assuming there's posts table in your db and jrubynb is a symlink to jruby 
1.0.0 rc2)
4) i get following output -
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/hello
      exists  app/views/layouts/
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
      create    app/models/post.rb
      create    test/unit/post_test.rb
      create    test/fixtures/posts.yml
can't convert nil into String 
5) when i do the same with MRI i get:
ruby script/generate scaffold post hello
      exists  app/controllers/
      exists  app/helpers/
      exists  app/views/hello
      exists  app/views/layouts/
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
   identical    app/models/post.rb
   identical    test/unit/post_test.rb
   identical    test/fixtures/posts.yml
      create  app/views/hello/_form.rhtml
      create  app/views/hello/list.rhtml
      create  app/views/hello/show.rhtml
      create  app/views/hello/new.rhtml
      create  app/views/hello/edit.rhtml
      create  app/controllers/hello_controller.rb
      create  test/functional/hello_controller_test.rb
      create  app/helpers/hello_helper.rb
      create  app/views/layouts/hello.rhtml
      create  public/stylesheets/scaffold.css

and rails app works as supposed. This is my DB config (i'm using empty root 
password for my DB)

development:
  adapter: mysql
  database: pokus
  username: root
  password:
  socket: /var/run/mysqld/mysqld.sock

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to