On Feb 22, 2010, at 7:51 PM, steve enzer wrote:
In my application, a service_option has_many service_conditions. In
service_option_hints.rb, I declare :service_conditions as one of
service_option's children (there are a couple of others).
Now, when I display the show page for service_options, I see "No
service conditions to display" in the right column, and if I add one
by hand to the database, it gets displayed - but what I'd really like
is a "New Service Option" link. There is an admin/
service_condition_controller with all the auto_options. Is there
something else that I'm missing?
preview-with-more (the tag used in the aside collections) doesn't have
an add link by default. Something like this (in show.dryml) should work:
<show-page>
<append-service-conditions-preview:>
<a action="new">Add Service Condition</a>
</append-service-conditions-preview:>
</show-page>
(warning: I have not tested this, but it should point you in the right
direction. Not sure if the <a> tag above will pick up the right
context.)
--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.