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.

Reply via email to