Closer!  Now the page displays "bulk add" without the (not available), but 
there's still no text area to use. I've applied all your changes as best I 
can discern.  Here's my code to date:

class Blacklist < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do
    identifier :string
    timestamps
  end
  attr_accessor :bulk_add
  attr_accessible :identifier

  ...

  def bulk_add=(text)
    ""
  end

  def bulk_add
    ""
  end

  ...

  def edit_permitted?
    true
  end

end

application.dryml
<extend tag="form" for="Blacklist">
   <field-list: fields="identifier, bulk_add">
      <batch-entries-view:>
        <textarea name="blacklist[bulk_add]" value=""/>
      </batch-entries-view:>
   </field-list:>
</extend>

class BlacklistsController < ApplicationController

  hobo_model_controller

  auto_actions :all

end

I must have misunderstood something.  I truly appreciate your patience, 
Bryan!

Thanks,

Dan


On Friday, January 4, 2013 7:38:03 AM UTC-8, Dan Lamet wrote:
>
> I'm a RoR/ActiveScaffold veteran.  I'm new to Hobo, however.  I've just 
> gone through the two-minute and Agility tutorials, and I've read through 
> some of the other chapters, but I can't seem to figure out how to hook into 
> the GUI properly.
>
> I have an app for which I'm keeping a black list.  I'd like to retain the 
> default Hobo ability to create a single record one at a time.  But I also 
> want to create a new page with a text area where I could paste dozens of 
> lines of new black list entries for a batch add.  I have the page built via 
> an old style RoR action, but can't figure out how to create link on the 
> Hobo page.  I'd also be happy to inline the new functionality via Ajax. 
>  Any suggestions are welcomed.
>
> Thanks, Dan
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/mLgNdaEURtcJ.
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