1.3.0.RC3 released

83 views
Skip to first unread message

Bryan Larsen

unread,
Oct 25, 2011, 12:49:44 PM10/25/11
to Hobo Users
Please test with your app, we're hoping to release this as 1.3.0 final
in a few days.

Notable changes:

- Matt Jones is responsible for the majority of these patches and for
cleaning up our Lighthouse. Thanks Matt.

- #966 exposed bugs in both Rapid and some user applications where <%
was used instead of <%=. If your app breaks, that might be the first
thing to check.

- will_paginate is a common pain point for new users, so hopefully
this release will help.

Here's the shortlog from 1.3.0.RC2:

9702117 Fix new-link on index-for pages.
164bc3a support for will_paginate 3.0
672c60e better handling of name_attribute on generated pages and in translations
04dd273 fix restore_locals
9369bfd fixed typos - administrtator => administrator, ActiveSuport =>
ActiveSupport
5c17a23 de-contextualize the table-plus search form tag
cbf7a24 [#888] fix handling of has_one and is_a
265475c mention what go-back needs to work
b5ee0fe [#714] don't make users log in to sign up
f913d95 [#753] put the inherited callback someplace it will actually get called
d3a7f44 fix handling of @model instance variables
a450d53 [#964] [#726] fix handling of can_view when repeating over an array
83e96e1 [#774] respect :primary_key option in select-one and friends
2367f9f [#788] indicate disabled buttons
982e7b3 [#780] handle magic options in all positions for auto_actions
3a1f398 [#960] force count option to integer in ht
aa33235 [#771] fix in-place editing and broken integer-select-editor
44bf29c remove non-working references to onBefore callback
a0c3cf0 [#748] fix create-button attribute handling
c06e190 rename Hobo::Controller::User to UserBase to avoid shadowing
application models
d854d52 [#951] pass default on to repeated invocations of choose
2395c8c [#708] check index name length before creating
eab4d6a [#769] harmonize behaviors of select-one-editor and select-one
aceb7af [#779] for-type now works outside of tag definitions
bbe3ac5 [#700] complain about useless :unique => true declaration
23893f5 [#747] show non-reversible reflections in aside
abb2120 [#777] handle new records and nils correctly in belongs_to test methods
17011ac [#966] support Rails 3-style block helpers
3ef3252 [#915] ignore generated :polymorphic klass shims in migration generator
76ba85d [#967] mark escaped string as html_safe in text type
9593993 [#967] fix obscure heisenbugs caused by class reloading after
basic types are registered
8f8371f use Time fallback when mass-assigning Date fields
926ec93 remove the span wrapper around primary-content
983c411 in future, CHECK the w3c specs before assuming you remember them ;)
6883fee [#755] wrap name-one in fields-with-errors correctly
2fbeac3 Identify the label to allow clicking the label instead of only
the checkbox
3717200 reduce chance of collisions in francois' patch to check-many
c3e7994 clarify some documentation for table tag.
2498d17 [#970] fix handling of before/after/prepend/append params with
new ERB parser
8cf9783 hack around issue with return value vs output buffer in new_context
0164d93 further fixes to ERB in params behavior
8a9c59b skip page / form generation for non-hobo_model_controllers
865563e [#966] fix dev-user-changer and select-menu bugs exposed by #966 bugfix.
f3a5900 target version RC3

These can easily be turned into a URL, for example
https://github.com/tablatom/hobo/commit/865563e

Bryan

Owen Dall

unread,
Oct 25, 2011, 1:07:30 PM10/25/11
to hobo...@googlegroups.com
Awesome. Thanks Matt and Bryan!


--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.




--
Owen Dall, Chief Systems Architect
Barquin International

Jeremy Savoy

unread,
Oct 25, 2011, 1:54:03 PM10/25/11
to Hobo Users
Thanks for all the hard work guys!

What's the recommended way to upgrade from 1.3.0RC2 ... gem, bundle,
both, other ?

Ignacio Huerta

unread,
Oct 26, 2011, 8:55:59 AM10/26/11
to hobo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Great work, thank you very much!

Regards,
Ignacio

El 25/10/11 18:49, Bryan Larsen escribi�:

- --
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6oA10ACgkQBPlUJ6RHaOQALACgqAdrjNRL49dBsWpLOM7rluVg
bZkAn1GlFD6bVauLWR09YapJeME75KU9
=xkGE
-----END PGP SIGNATURE-----

Bryan Larsen

unread,
Oct 26, 2011, 10:45:05 AM10/26/11
to hobo...@googlegroups.com
Either should work fine. Previously there were methods that didn't
work because of the will_paginate problems, but hopefully the release
of this RC clears that up.

The recommendation should be "try different stuff", because if there
is some way that doesn't work, we need to know about that before
1.3.0. :)

Bryan

paulj...@gmail.com

unread,
Oct 26, 2011, 9:02:09 PM10/26/11
to Hobo Users
I have an app that runs fine locally with RC2 or RC3 or onEngine Yard
with RC2, and fails with RC3 on Engine Yard. In all cases I am using
Passenger 3 and Rails 1.9.2.

The error message is in the file:

/var/log/engineyard/nginx/passenger.log

... Several hundred lines of error start with (also at pastie
http://pastie.org/2765094):

*** Phusion Passenger: no passenger_native_support.so found for the
current Ruby interpreter. Compiling one...
# mkdir -p /root/.passenger/native_support/3.0.8/ruby-1.9.2-x86-linux
# cd /root/.passenger/native_support/3.0.8/ruby-1.9.2-x86-linux
# /usr/bin/ruby19 '/usr/share/passenger/source/ext/ruby/extconf.rb'
checking for alloca.h... yes
checking for ruby/io.h... yes
checking for rb_reserved_fd_p()... no
creating Makefile
# make
i686-pc-linux-gnu-gcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/
include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I/usr/
share/passenger/source/ext/ruby -DHAVE_ALLOCA_H -DHAVE_RUBY_IO_H -
D_FILE_OFFSET_BITS=64 -fPIC -O2 -march=pentium-m
-pipe -mno-tls-direct-seg-refs -fno-strict-aliasing -fPIC -g -o
passenger_native_support.o -c /usr/share/passenger/source/ext/ruby/
passenger_native_support.c
i686-pc-linux-gnu-gcc -shared -o passenger_native_support.so
passenger_native_support.o -L. -L/usr/lib -Wl,-R/usr/lib -L. -Wl,-O1,--
hash-style=gnu -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -Wl,-R
-Wl,/usr/lib -L/usr/lib -lruby19
[ pid=6083 thr=67343440 file=utils.rb:176 time=2011-10-26
16:01:06.014 ]: *** Exception ArgumentError in
PhusionPassenger::Rack::ApplicationSpawner (Dryml is not missing
constant DRYMLBuilder!) (process 6083, thread #<Thread:0x80728a0>):

Any insight on this?

Owen

unread,
Oct 27, 2011, 6:26:37 PM10/27/11
to Hobo Users
Installed and built a couple of simple apps with RC 3 on Windows XP
and Mac. So far so good.

Brian Absetz on our team at NIFA is starting from scratch on a new
utilitiy app using RC3...

Thanks guys!

On Oct 26, 9:02 pm, "pauljda...@gmail.com" <pauljda...@gmail.com>
wrote:
> I have an app that runs fine locally with RC2 or RC3 or onEngine Yard
> with RC2, and fails with RC3 on Engine Yard. In all cases I am using
> Passenger 3 and Rails 1.9.2.
>
> The error message is in the file:
>
>  /var/log/engineyard/nginx/passenger.log
>
> ... Several hundred lines of error start with (also at pastiehttp://pastie.org/2765094):
> > > For more options, visit this group athttp://groups.google.com/group/hobousers?hl=en.- Hide quoted text -
>
> - Show quoted text -

Donald R. Ziesig

unread,
Oct 29, 2011, 10:20:56 AM10/29/11
to hobo...@googlegroups.com
Hi All!

Using RC3 and preparing for Heroku deploy using 'thin' webserver per
Heroku docs. (This config works on a Heroku-hosted site using RC2.)

Added:

gem 'thin'

to Gemfile, then

> bundle install

and

> thin start

gives:

.../lib/bundler/runtime.rb:31:in `block in setup': You have already
activated rack 1.3.5, but your Gemfile requires rack 1.2.4. Consider
using bundle exec. (Gem::LoadError)

added:

gem 'rack', '1.3.5'

to Gemfile, followed by

> bundle update rack

gives:

Bundler could not find compatible versions for gem "rack":
In Gemfile:
hobo (= 1.3.0.RC3) depends on
rack (~> 1.2.1)

rack (1.3.5)

Conclusion, RC3 not quite ready for prime time :-( .

The above was done with Ruby 1.9.2, Rails 3.0.10 under rvm. Hobo
reports it is 1.3.0.RC3 when run.

Don Z

Owen Dall

unread,
Oct 29, 2011, 11:51:13 AM10/29/11
to hobo...@googlegroups.com, Tom Locke, Bryan Larsen, Matt Jones
Thanks for that, Don.


For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.
--
Owen Dall, Chief Systems Architect
Barquin Internationalwww.barquin.com
Cell: 410-991-0811
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsubscribe@googlegroups.com.

For more options, visit this group athttp://groups.google.com/group/hobousers?hl=en.- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Donald R. Ziesig

unread,
Oct 29, 2011, 1:38:41 PM10/29/11
to hobo...@googlegroups.com
Hi Again!

I hate to be a PITA, but one more issue:

<extend tag="nav-item">
  *
  *
  *
</extend>

works in RC2, but produces:

undefined method `nav_item' for class `#<Class:0xaeb1a54>'

in RC3.

The original def tag for nav-item is in the RC3 file  gems/hobo-1.3.0.RC3/lib/hobo/rapid/taglibs/rapid_navigation.dryml, as in the RC2 file gems/hobo-1.3.0.RC2/lib/hobo/rapid/taglibs/rapid_navigation.dryml

but I can't seem to make it visible to application.dryml (where I include the file that extends nav_item) in the RC3 code.

Ideas anyone?

Don Z.

BTW,  I have had problems in RC2 and before with the order in which dryml files are included.  This looks to be along the same lines except that things that fixed the problem before no longer work in RC3.

kevinpfromnm

unread,
Oct 29, 2011, 8:19:16 PM10/29/11
to hobo...@googlegroups.com
I'm not sure this is a hobo bug as it's the mixture of rack versions being loaded.  The fix is pretty simple:

bundle exec thin start

this loads up the gems specified in the gemfile before loading the thin gem (and it's dependencies) making sure there's no difference in loaded versions.

Matt Jones

unread,
Oct 29, 2011, 8:39:38 PM10/29/11
to hobo...@googlegroups.com

On Oct 29, 2011, at 1:38 PM, Donald R. Ziesig wrote:

> Hi Again!
>
> I hate to be a PITA, but one more issue:
>
> <extend tag="nav-item">
> *
> *
> *
> </extend>
>
> works in RC2, but produces:
>
> undefined method `nav_item' for class `#<Class:0xaeb1a54>'
>
> in RC3.
>
> The original def tag for nav-item is in the RC3 file gems/hobo-1.3.0.RC3/lib/hobo/rapid/taglibs/rapid_navigation.dryml, as in the RC2 file gems/hobo-1.3.0.RC2/lib/hobo/rapid/taglibs/rapid_navigation.dryml
>
> but I can't seem to make it visible to application.dryml (where I include the file that extends nav_item) in the RC3 code.
>
> Ideas anyone?

I can't seem to reproduce this, even when doing things that I would have suspected would cause it (extending the tag before it's included, for instance). I was able to produce the same error, but only when I commented out the <include src="rapid" gem="hobo"/> line in application.dryml - not something I suspect is applicable to your situation.

Can you be more specific about the order of files that causes this problem?

--Matt Jones

paulj...@gmail.com

unread,
Oct 29, 2011, 10:11:29 PM10/29/11
to Hobo Users
This looks like the same problem I was having in my Engine Yard deploy
above with Passenger.

I have reverted to RC2 for the moment, but would like to get back to
RC3 - looks like some useful fixes in there.

A couple of comments:

1. Could the dependencies in Hobo be adjusted, maybe loosened, to
correct this?

2. How can I use such a command line on Engine Yard - perhaps someone
here is also en EY customer. I will ask EY as well.

Thanks!

Pd

Donald R. Ziesig

unread,
Oct 30, 2011, 2:40:07 PM10/30/11
to hobo...@googlegroups.com
I can reproduce this in multiple apps with multiple configurations, the simplest being an app that accepts the defaults in setup_wizard (where possible) and is a no-invite, with admin subsite.

Matt's reply pointed me to application.dryml which in all of the sites I generated contains only one line:

<!-- Global taglib - these tags are shared across all subsites -->
<eof>

I had been adding the line:

<include src="taglibs/nav_item"/>

which points to an existing dryml file hav_item.dryml in the tablibs directory.

As soon as I put this line in, I got the error.

Matt said he commented out  <include src="rapid" gem="hobo"/> which does not exist in the original application.dryml, so I added that line giving me an application.dryml that looks like this:

<!-- Global taglib - these tags are shared across all subsites -->

<include src="rapid" gem="hobo"/>
<include src="taglibs/nav_item"/>
<eof>

I restarted the app and it works.

So where did the line <include src="rapid" gem="hobo"/> go between RC2 and RC3?

Don Z.


Matt Jones

unread,
Oct 30, 2011, 5:02:26 PM10/30/11
to hobo...@googlegroups.com

Just tried this out - for an app with an admin-site *and* the "make separate front_site.dryml" option, the application.dryml containing the <include> is moved to front_site.dryml and a blank application.dryml (like yours above) is created.

The generated admin_site.dryml also contains an <include src="rapid" gem="hobo" />; so both subsites get the needed definitions, but extending Rapid tags in application.dryml will fail as the taglib hasn't been loaded yet there.

I'm a little baffled as to how this worked before, but I'm disinclined to call it a "bug" exactly. To be honest, it's weird enough that you can write:

<extend tag="nav-item">
FOO
</extend>

<include src="rapid" gem="hobo"/>

and not get an error.

There's some other things about the current behavior of copying application.dryml to front_site.dryml that I'm not entirely happy with - the incorrect comment in front_site.dryml is annoying. A cleaner solution would be to have the generator snip out the comment and the <include src="hobo"> (to move it to the new application.dryml).

I've got slack time @ work tomorrow, so I'll see if I can get this change working.

--Matt Jones

Ignacio Huerta

unread,
Oct 31, 2011, 2:43:27 AM10/31/11
to hobo...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have seen the same error: "Dryml is not missing constant
DRYMLBuilder". In my environment, after moving from RC2 to RC3 I get this:

$ rails server -e production
=> Booting WEBrick
=> Rails 3.0.10 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:479:in
`load_missing_constant': Dryml is not missing constant DRYMLBuilder!
(ArgumentError)

I found a workaround: comment the line in
config/initializers/dryml_taglibs.rb. Somehow preloading taglibs is not
working with my app.

Regards,
Ignacio


El 27/10/11 03:02, paulj...@gmail.com escribi�:

- --

Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6uQ44ACgkQBPlUJ6RHaOTskQCgknNswOktthuKgD3bI1zIykOe
JtwAoKZJ9DYtoq0NfsCu1E+c6oE/+YM6
=DsVD
-----END PGP SIGNATURE-----

Owen Dall

unread,
Oct 31, 2011, 7:59:46 AM10/31/11
to hobo...@googlegroups.com
Thanks, Ignacia, I get the same thing running in production mode with Ruby 1.8.7 and Rails 3.0.3.


On Mon, Oct 31, 2011 at 2:43 AM, Ignacio Huerta <ign...@ihuerta.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have seen the same error: "Dryml is not missing constant
DRYMLBuilder". In my environment, after moving from RC2 to RC3 I get this:

$ rails server -e production
=> Booting WEBrick
=> Rails 3.0.10 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:479:in
`load_missing_constant': Dryml is not missing constant DRYMLBuilder!
(ArgumentError)

I found a workaround: comment the line in
config/initializers/dryml_taglibs.rb. Somehow preloading taglibs is not
working with my app.

Regards,
Ignacio


El 27/10/11 03:02, paulj...@gmail.com escribió:
Teléfono: 0034 645 70 77 35

Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6uQ44ACgkQBPlUJ6RHaOTskQCgknNswOktthuKgD3bI1zIykOe
JtwAoKZJ9DYtoq0NfsCu1E+c6oE/+YM6
=DsVD
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Donald R. Ziesig

unread,
Oct 31, 2011, 10:03:31 AM10/31/11
to hobo...@googlegroups.com
Matt, it has been so long since I set this up initially that I can't
remember what I did to make it work with RC2. I do remember having to
hack, and hack, and hack ...( many hours worth) ;-) till I got it to
work, though. I may have copied the hobo gem line from a test site that
worked and then promptly forgot what I did.

Thanks for the hint.

Don Z.

Owen Dall

unread,
Oct 31, 2011, 10:27:31 AM10/31/11
to hobo...@googlegroups.com
Thanks, Matt, for tackling this issue...

-Owen

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Matt Jones

unread,
Oct 31, 2011, 7:08:32 PM10/31/11
to hobo...@googlegroups.com

On Oct 29, 2011, at 10:20 AM, Donald R. Ziesig wrote:

> Hi All!
>
> Using RC3 and preparing for Heroku deploy using 'thin' webserver per Heroku docs. (This config works on a Heroku-hosted site using RC2.)
>
> Added:
>
> gem 'thin'
>
> to Gemfile, then
>
> > bundle install
>
> and
>
> > thin start
>
> gives:
>
> .../lib/bundler/runtime.rb:31:in `block in setup': You have already activated rack 1.3.5, but your Gemfile requires rack 1.2.4. Consider using bundle exec. (Gem::LoadError)
>
> added:
>
> gem 'rack', '1.3.5'
>
> to Gemfile, followed by
>
> > bundle update rack
>
> gives:
>
> Bundler could not find compatible versions for gem "rack":
> In Gemfile:
> hobo (= 1.3.0.RC3) depends on
> rack (~> 1.2.1)
>
> rack (1.3.5)
>
> Conclusion, RC3 not quite ready for prime time :-( .

We actually inherit this dependency from actionpack 3.0.10, so I don't think there's anything to be done about it. Either use 'bundle exec' to start thin or make sure that you've got the right version of Rack installed...

--Matt Jones


Matt Jones

unread,
Oct 31, 2011, 7:51:32 PM10/31/11
to hobo...@googlegroups.com

On Oct 31, 2011, at 2:43 AM, Ignacio Huerta wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have seen the same error: "Dryml is not missing constant
> DRYMLBuilder". In my environment, after moving from RC2 to RC3 I get this:
>
> $ rails server -e production
> => Booting WEBrick
> => Rails 3.0.10 application starting in production on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
> Exiting
> /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:479:in
> `load_missing_constant': Dryml is not missing constant DRYMLBuilder!
> (ArgumentError)
>
> I found a workaround: comment the line in
> config/initializers/dryml_taglibs.rb. Somehow preloading taglibs is not
> working with my app.

Found this - the problem was that Erubis usually gets loaded by Rails, but in this context that hasn't happened yet. The error in production mode was HIGHLY uninformative, but forcing precompile_taglibs to run in development mode gave this:

/Users/mattjones/.rvm/gems/ruby-1.9.2-p290/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:63:in `<class:DRYMLBuilder>': uninitialized constant Erubis (NameError)

MUCH more helpful. :)

I've committed the one-line fix to the repo; for now, you can add:

require 'erubis'

to the top of dryml_taglibs.rb.

--Matt Jones

paulj...@gmail.com

unread,
Oct 31, 2011, 11:44:47 PM10/31/11
to Hobo Users
Thanks, Matt. This change worked great for me.

On Oct 31, 4:51 pm, Matt Jones <al2o...@gmail.com> wrote:
> On Oct 31, 2011, at 2:43 AM, Ignacio Huerta wrote:
>
>
>
>
>
>
>
>
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
>
> > Hi,
>
> > I have seen the same error: "Dryml is not missing constant
> > DRYMLBuilder". In my environment, after moving from RC2 to RC3 I get this:
>
> > $ rails server -e production
> > => Booting WEBrick
> > => Rails 3.0.10 application starting in production onhttp://0.0.0.0:3000
> > => Call with -d to detach
> > => Ctrl-C to shutdown server
> > Exiting
> > /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.10/lib/activ e_support/dependencies.rb:479:in
> > `load_missing_constant': Dryml is not missing constant DRYMLBuilder!
> > (ArgumentError)
>
> > I found a workaround: comment the line in
> > config/initializers/dryml_taglibs.rb. Somehow preloading taglibs is not
> > working with my app.
>
> Found this - the problem was that Erubis usually gets loaded by Rails, but in this context that hasn't happened yet. The error in production mode was HIGHLY uninformative, but forcing precompile_taglibs to run in development mode gave this:
>
> /Users/mattjones/.rvm/gems/ruby-1.9.2-p290/gems/dryml-1.3.0.RC3/lib/dryml/d ryml_builder.rb:63:in `<class:DRYMLBuilder>': uninitialized constant Erubis (NameError)

Owen Dall

unread,
Nov 1, 2011, 9:31:04 AM11/1/11
to hobo...@googlegroups.com
Thanks, Matt!

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.

Donald R. Ziesig

unread,
Nov 1, 2011, 9:47:05 AM11/1/11
to hobo...@googlegroups.com
OK, but hopefully, when I get it installed on Heroku where I have no
control over how it is invoked, it will work. I'll let you know.

Thanks,

Don Z.

Quiliro Ordóñez

unread,
Nov 2, 2011, 11:28:04 AM11/2/11
to hobo...@googlegroups.com
I have Hobo 1.3.0 RC3. When adding this code to app/views/taglibs/application.dryml as Hobo with Rails 3 Tutorial 17 page 240 instructs:

10

11 <extend tag="card" for "Task">

12   <old-card merge>

13     <append-body:>

14       <div class="users">

15         Assigned users: <repeat:users join=",
"><a/></repeat><else>None</else>

16       </div>

17     </append-body:>

18   </old-card>

19 </extend>

20





I get a similar error as this when I go into any page in the application:

Dryml::DrymlSyntaxError in RequirementsController#show

File: app/views/taglibs/application.dryml #<REXML::ParseException: malformed XML: missing tag start Line: 10 Position: 0 Last 80 unconsumed characters: <extend tag="card" for "Task"> <old-card merge> <append-body:> <div c> /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/parser/base_parser.rb:205:in `pull' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/parser/tree_parser.rb:16:in `parse' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/parser/document.rb:50:in `build' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/parser/document.rb:25:in `initialize' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/template.rb:94:in `new' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/template.rb:94:in `process_src' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/template.rb:64:in `compile' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/taglib.rb:105:in `load' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/taglib.rb:67:in `initialize' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/taglib.rb:15:in `new' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/taglib.rb:15:in `get' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:157:in `import_taglib' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:112:in `block in build' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:112:in `each' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/dryml_builder.rb:112:in `build' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/template.rb:75:in `compile' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml.rb:233:in `compile_renderer_class' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml.rb:222:in `make_renderer_class' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml.rb:85:in `page_renderer' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml.rb:61:in `empty_page_renderer' /usr/lib/ruby/gems/1.9.1/gems/dryml-1.3.0.RC3/lib/dryml/railtie/page_tag_resolver.rb:13:in `find_templates' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/template/resolver.rb:20:in `block in find_all' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/template/resolver.rb:38:in `cached' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/template/resolver.rb:19:in `find_all' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/paths.rb:21:in `block in find_all' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/paths.rb:20:in `each' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/paths.rb:20:in `find_all' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/paths.rb:14:in `find' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/lookup_context.rb:81:in `find' (__DELEGATION__):2:in `find_template' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/render/rendering.rb:46:in `_determine_template' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_view/render/rendering.rb:24:in `render' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:115:in `_render_template' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:109:in `render_to_body' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/renderers.rb:47:in `render_to_body' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/compatibility.rb:55:in `render_to_body' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:102:in `render_to_string' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:93:in `render' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb:17:in `render' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /usr/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/core_ext/benchmark.rb:5:in `ms' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/railties/controller_runtime.rb:15:in `cleanup_view_runtime' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:39:in `render' /usr/lib/ruby/gems/1.9.1/gems/hobo-1.3.0.RC3/lib/hobo/controller/model.rb:815:in `render_with_hobo_model' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:150:in `process_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb:11:in `process_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:456:in `_run__64697026__process_action__980043612__callbacks' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `run_callbacks' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:17:in `process_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rescue.rb:17:in `process_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `block in instrument' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:119:in `process' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:41:in `process' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb:138:in `dispatch' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb:178:in `block in action' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `dispatch' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:27:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in `block in call' /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in `block in recognize' /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:82:in `optimized_each' /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in `recognize' /usr/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:493:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb:14:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/methodoverride.rb:24:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb:21:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb:182:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb:302:in `call' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:32:in `block in call' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:12:in `cache' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:31:in `call' /usr/lib/ruby/gems/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:416:in `_run_call_callbacks' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:44:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/sendfile.rb:106:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb:48:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call' /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.10/lib/rails/rack/logger.rb:13:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/runtime.rb:17:in `call' /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.10/lib/active_support/cache/strategy/local_cache.rb:72:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/lock.rb:11:in `block in call' <internal:prelude>:10:in `synchronize' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/lock.rb:11:in `call' /usr/lib/ruby/gems/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call' /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:168:in `call' /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing' /usr/lib/ruby/gems/1.9.1/gems/railties-3.0.10/lib/rails/rack/log_tailer.rb:14:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/content_length.rb:13:in `call' /usr/lib/ruby/gems/1.9.1/gems/rack-1.2.4/lib/rack/handler/webrick.rb:52:in `service' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' ... malformed XML: missing tag start Line: 10 Position: 0 Last 80 unconsumed characters: <extend tag="card" for "Task"> <old-card merge> <append-body:> <div c Line: 10 Position: 0 Last 80 unconsumed characters: <extend tag="card" for "Task"> <old-card merge> <append-body:> <div c

Rails.root: /archivos/respaldos/tutorial/projects

Request

Parameters:

{"id"=>"1-mecanismo-de-propulsi-n"}

    

kevinpfromnm

unread,
Nov 2, 2011, 3:19:39 PM11/2/11
to hobo...@googlegroups.com
Malformed xml errors are usually pretty easy to track down.  start looking at your quotation marks as at first glance the tags look properly closed.  If you copied and pasted, it might be print style quotes instead of straight quotes.

Quiliro Ordóñez

unread,
Nov 2, 2011, 1:30:40 PM11/2/11
to hobo...@googlegroups.com
On 02/11/11 10:28, Quiliro Ordóñez wrote:
I have Hobo 1.3.0 RC3. When adding this code to app/views/taglibs/application.dryml as Hobo with Rails 3 Tutorial 17 page 240 instructs:

10

11 <extend tag="card" for "Task">


Thanks to Matt, noticed this line should be:
<extend tag="card" for="Task">
I forgot the equal sign.
Reply all
Reply to author
Forward
0 new messages