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 at > http://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.
