Hey guys, I just started building a project in hobo. The docs are
great. Kudos to all that have put work into them. I can't can't seem
to figure out how I change the fields shown for a model when it is
being created/edited as an association.

Dictionary has_many :dictionary_assets, :accessible => true
DictioanryAsset belongs_to :dictionary, :accessible => true
DictionaryAsset has_attached_file :asset, :accessible => true


<extend tag="form" for="DictionaryAsset">
  <old-form merge multipart>
  <field-list: fields="name, description, dictionary, asset"/>
  </old-form>
</extend>

<def tag="input" for="Paperclip::Attachment">
  <%= file_field_tag param_name_for_this, attributes %>
</def>

This gets me a file upload field in the base model edit/create view,
but when I access the Dictionary model, I have the original fields:
asset_file_name, asset_content_type, asset_file_size, asset_updated_at
and not the file upload.

Thanks a billion,
-christian

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