Ian wrote:
Hello,

Spot on.  Thanks for the 'rapid' response (like you haven't heard that
one before).  The Hobo syntax takes a bit of getting used to.  I may
as well ask another question.  I am trying to create a form inside the
'front' page that has a text input and a date picker  However when
using <input for='date'> I get a 'undefined method `editable_by?' for
nil:NilClass'.  I assume this is because there is no context for the
front page so it doesn't know what the date picker is for?  So, can
you use these custom inputs as plain arbitrary inputs in a form?

for is only supported when defining a tag, not using it. To get the appropriate input, set the context:

<input with="&@my_date">


Also, can you put rails style routes like 'search_courses_url' inside
a <form> instead of something like '<form action="/courses/search">'.

<form action="&search_courses_path">

The '&' escapes into ruby. It works like <%...%> or #{...}, but <%...%> doesn't work inside attributes, and #{...} may get escaped in Rails 3.

Bryan

--
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