You can't generate a normal merb app with jRuby because of datamaper. You have to do merb-gen core app-name
Tonight wycats and I had a talk with the jRuby guys about getting a dm driver working with jRuby. In the meantime, or if you are not interesting in DM, activerecord works just fine. Matt Sent from my iPhone On Nov 9, 2008, at 0:33, Mark Watson <[EMAIL PROTECTED]> wrote: > > I think that this is a bug with the current version(s) of JRuby's > Templater implementation. > > Have you tried generating the project using Matz's Ruby, then running > Merb with JRuby? > > Also, you will probably want to use ActiveRecord until DataMapper is > 'JRuby ready'. > > On Nov 8, 7:47 pm, "Vivek Pandey" <[EMAIL PROTECTED]> wrote: >> I think I am making progress. Do I need any more merb gems? I >> installed >> merb-core and merb-more independently and they installed just fine: >> >> [EMAIL PROTECTED](553)> gem list merb* >> >> *** LOCAL GEMS *** >> >> merb-action-args (1.0) >> merb-assets (1.0) >> merb-auth (1.0) >> merb-auth-core (1.0) >> merb-auth-more (1.0) >> merb-auth-slice-password (1.0) >> merb-cache (1.0) >> merb-core (1.0) >> merb-exceptions (1.0) >> merb-gen (1.0) >> merb-haml (1.0) >> merb-helpers (1.0) >> merb-mailer (1.0) >> merb-more (1.0) >> merb-param-protection (1.0) >> merb-slices (1.0) >> merb_datamapper (1.0) >> >> However, >> >> merb-gen app myapp >> >> Fails with this error, what I might be missing. >> >> [EMAIL PROTECTED](551)> merb-gen app myapp >> Generating with app generator: >> [ADDED] gems >> [ADDED] tasks/merb.thor >> [ADDED] .gitignore >> [ADDED] public/.htaccess >> [ADDED] tasks/doc.thor >> [ADDED] public/javascripts/jquery.js >> [ADDED] doc/rdoc/generators/merb_generator.rb >> [ADDED] doc/rdoc/generators/template/merb/api_grease.js >> [ADDED] doc/rdoc/generators/template/merb/index.html.erb >> [ADDED] doc/rdoc/generators/template/merb/merb.css >> [ADDED] doc/rdoc/generators/template/merb/merb.rb >> [ADDED] doc/rdoc/generators/template/merb/merb_doc_styles.css >> [ADDED] doc/rdoc/generators/template/merb/prototype.js >> [ADDED] public/favicon.ico >> [ADDED] public/merb.fcgi >> [ADDED] public/robots.txt >> [ADDED] public/images/merb.jpg >> (erb):27:in `render': undefined local variable or method >> `testing_framework' >> for #<Templater::Actions::Template:0x51550e> (NameError) >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/actions/template.rb:49:in >> `eval' >> from /tools/jruby-1.1.5/lib/ruby/1.8/erb.rb:743:in `result' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/actions/template.rb:26:in >> `render' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/actions/template.rb:49:in >> `invoke!' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/actions/template.rb:49:in >> `open' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/actions/template.rb:49:in >> `invoke!' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/cli/generator.rb:102:in >> `step_through_templates' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/cli/generator.rb:84:in >> `each' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/cli/generator.rb:84:in >> `step_through_templates' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/cli/generator.rb:75:in >> `run' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/cli/manifold.rb:24:in >> `run' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/templater-0.3.5/lib/ >> templater/manifold.rb:80:in >> `run_cli' >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/merb-gen-1.0/bin/merb-gen:6 >> from >> /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/merb-gen-1.0/bin/merb-gen: >> 19:in >> `load' >> from /tools/jruby/bin/merb-gen:19 >> >> -vivek. >> >> On Sat, Nov 8, 2008 at 6:56 AM, Per Melin <[EMAIL PROTECTED]> >> wrote: >> >>>>> Any workaround that I can use to get past this? >> >>>> "merb" gem add as dependency datamapper components, which includes >>>> do_sqlite3. At this time do_sqlite3 has no Java implementation. >> >>> The merb gem is just merb-core, merb-more and datamapper. So by >>> installing merb-core and merb-more directly you get around the >>> problem. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
