Hi Bryan, thanks for pointing that out. Unfortunately (and I suspect
this is straying a bit from the original topic), I am getting another
error once I install the hobo-jquery gem for rails3:
Dryml::DrymlException in Front#index
No such taglib: ~/code/exp/jquery_test/app/views/taglibs
{:type=>:include, :template_dir=>"app/views/taglibs"} ~/code/exp/
jquery_test/app/views/taglibs/.dryml
This happened in my original app and then I built a fresh one just to
test my gem installation. Got the same error.
Here is the last bit of the Framework trace
--------------------------------------------
dryml (1.3.0.pre31) lib/dryml/taglib.rb:48:in `taglib_filename'
dryml (1.3.0.pre31) lib/dryml/taglib.rb:10:in `get'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:118:in `import_taglib'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:91:in `block in build'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:75:in `each'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:75:in `build'
dryml (1.3.0.pre31) lib/dryml/template.rb:75:in `compile'
dryml (1.3.0.pre31) lib/dryml/taglib.rb:94:in `load'
dryml (1.3.0.pre31) lib/dryml/taglib.rb:56:in `initialize'
dryml (1.3.0.pre31) lib/dryml/taglib.rb:15:in `new'
dryml (1.3.0.pre31) lib/dryml/taglib.rb:15:in `get'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:118:in `import_taglib'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:73:in `block in build'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:73:in `each'
dryml (1.3.0.pre31) lib/dryml/dryml_builder.rb:73:in `build'
dryml (1.3.0.pre31) lib/dryml/template.rb:75:in `compile'
dryml (1.3.0.pre31) lib/dryml.rb:230:in `compile_renderer_class'
dryml (1.3.0.pre31) lib/dryml.rb:219:in `make_renderer_class'
dryml (1.3.0.pre31) lib/dryml.rb:91:in `page_renderer'
dryml (1.3.0.pre31) lib/dryml.rb:67:in `call_render'
actionpack (3.0.8) lib/action_view/template.rb:135:in `block in
render'
I will try the plugin to see if that makes a difference. In any case,
I think my original problem is solved. Thanks to both of you for your
help.
Jim
On Jun 14, 12:49 pm, Bryan Larsen <[email protected]> wrote:
> It looks like you're using the rails2 version of hobo-jquery with rails3.
>
> https://github.com/bryanlarsen/hobo-jquery/tree/rails3
>
> Bryan
>
>
>
>
>
>
>
> On Tue, Jun 14, 2011 at 3:46 PM, Jim <[email protected]> wrote:
> > Thanks Matt, when I remove "field=year" I get the page loading but I
> > see this on top of a text input field:
>
> > <!-- json_annotation ({"tag":"hjq-
> > datepicker","init":"hjq.datepicker.init","options":{"dateFormat":"yy-
> > mm-dd","yearRange":"1900:2011"},"events":{}}); -->
>
> > I'm guessing Hobo is escaping something by mistake here?
>
> > On Jun 14, 12:38 pm, Matt Jones <[email protected]> wrote:
> >> On Jun 14, 2011, at 3:28 PM, Jim wrote:
>
> >> > Still fairly new to Hobo and DRYML so forgive me if this is obvious
> >> > but I can't seem to work out what's wrong based on the online docs.
> >> > I'm getting the "undefined method `editable_by?' for nil:NilClass"
> >> > error when I load the edit page for my :release model which has this
> >> > field: "year => :date"
>
> >> > in application.dryml
> >> > ----------------------------
> >> > <def tag="input" for="date">
> >> > <hjq-datepicker dateFormat="yy-mm-dd" merge />
> >> > </def>
>
> >> > in releases/edit.dryml
> >> > -------------------------------
> >> > <edit-page>
> >> > <form:>
> >> > <field-list:>
> >> > <year-view:>
> >> > <input field="year" yearRange="1900:#{Date.today.year}"/>
>
> >> Inside the year-view parameter, the field is already in scope; this is
> >> looking for a field called "year" on the year field (in Ruby,
> >> @some_object.year.year) which probably isn't what you want. Removing the
> >> 'field="year"' part should fix the error. If it doesn't, please post a
> >> complete stack trace and we'll dig further...
>
> >> --Matt Jones
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Hobo Users" 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
> > athttp://groups.google.com/group/hobousers?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.