Yes...

   class PresentationsController < ApplicationController

      before_filter :login_required

      hobo_model_controller

      auto_actions :all, :except => :index

      auto_actions_for :portfolio, [:new, :create]
      auto_actions_for :session, [:new, :create]


   end

And, I barely mention position in the model.

Henry


On 12-08-06 11:26 AM, Bryan Larsen wrote:
Do you have the update action enabled in the presentations controller?

Bryan

On Sun, Aug 5, 2012 at 7:11 PM, Henry Baragar
<[email protected]> wrote:
Hello,

I am having problems with the <integer-select-editor> tag in Hobo 1.03.  I
have a page with a collection of presentations with the following code
snippet:

<collection:>
   <before-item:><integer-select-editor:position min="1"
max="3"/></before-item:>
</collection:>

The tag displays fine, but produces the following trace when I try to change
the value of position:

  SQL (0.1ms)   SET SQL_AUTO_IS_NULL=0
   SQL (0.6ms)   SHOW TABLES
   Call Columns (0.7ms)   SHOW FIELDS FROM `calls`
   Participant Columns (0.9ms)   SHOW FIELDS FROM `participants`
   SQL (0.5ms)   SHOW TABLES
   SQL (0.3ms)   SHOW TABLES
   User Columns (0.7ms)   SHOW FIELDS FROM `users`
   Presentation Columns (0.9ms)   SHOW FIELDS FROM `presentations`
   BroadcastEmail Columns (0.5ms)   SHOW FIELDS FROM `broadcast_emails`
   CallForNextYear Columns (0.6ms)   SHOW FIELDS FROM `calls`
   CallForSupporter Columns (0.6ms)   SHOW FIELDS FROM `calls`
   CfpDate Columns (0.4ms)   SHOW FIELDS FROM `cfp_dates`
   Cfp Columns (0.6ms)   SHOW FIELDS FROM `calls`
   Conference Columns (0.5ms)   SHOW FIELDS FROM `conferences`
   ExternalReviewer Columns (0.5ms)   SHOW FIELDS FROM `external_reviewers`
   FacilityArea Columns (0.4ms)   SHOW FIELDS FROM `facility_areas`
   Involvement Columns (0.4ms)   SHOW FIELDS FROM `involvements`
   Member Columns (0.5ms)   SHOW FIELDS FROM `members`
   Portfolio Columns (0.7ms)   SHOW FIELDS FROM `portfolios`
   Room Columns (0.5ms)   SHOW FIELDS FROM `rooms`
   Session Columns (0.5ms)   SHOW FIELDS FROM `sessions`
   SupporterLevel Columns (0.5ms)   SHOW FIELDS FROM `supporter_levels`
   DeferredDeletion Columns (0.6ms)   SHOW FIELDS FROM `deferred_deletions`
   SQL (0.5ms)   SHOW TABLES
   SQL (0.5ms)   SHOW TABLES
   SQL (0.4ms)   SHOW TABLES


Processing PresentationsController#102 (for 127.0.0.1 at 2012-08-05
19:04:11) [POST]
   Parameters: {"_"=>"",
"authenticity_token"=>"HztKqgCJDwVrMV8lHIFSOpDqQNb10JSPsWK3ogWiZ24=",
"presentation"=>{"position"=>"2"}}
   User Load (0.1ms)   SELECT * FROM `users` WHERE (`users`.`id` = 4)

ActionController::UnknownAction (No action responded to 102. Actions:
access_denied, authenticated_user_from_cookie, authorized?, create,
create_auth_cookie, create_for_portfolio, create_for_session, destroy, edit,
ht, login_from_cookie, login_required, model, new, new_for_portfolio,
new_for_session, redirect_back_or_default, reorder, rescue_action_in_public,
show, store_location, and update):

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in
`call_filters'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:638:in
`run_before_filters'
   vendor/ruby/1.8/gems/hobo-1.0.3/lib/hobo/controller.rb:23:in `call'
   vendor/ruby/1.8/gems/hobo-1.0.3/lib/hobo/controller.rb:23:in
`included_in_class'

vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in
`call'

vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in
`evaluate_method'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:184:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:635:in
`run_before_filters'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:615:in
`call_filters'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in
`perform_action'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in
`send'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in
`process_without_filters'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in
`process'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in
`process'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in
`dispatch'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in
`_call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in
`call'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in
`call'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in
`cache'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in
`call'

vendor/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:114:in
`call'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/reloader.rb:34:in
`run'

vendor/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:108:in
`call'
   vendor/ruby/1.8/gems/rails-2.3.14/lib/rails/rack/static.rb:31:in `call'
   vendor/ruby/1.8/gems/rails-2.3.14/lib/rails/rack/log_tailer.rb:17:in
`call'
   /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
   /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
   /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
   /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
   /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
   /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
   vendor/ruby/1.8/gems/rails-2.3.14/lib/commands/server.rb:111

Rendering rescues/layout (not_found)

If you are wondering about the funny number in "Processing
PresentationsController#102", its the record ID; which is absent from the
parameters hash.

By the way, here are the first few lines of html produced by the tag:

<ul class="collection presentations">

  <select class="integer editor  model::presentation:105:position">

    <option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
  </select>
<li class="odd model::presentation:105 item">

   <div class="card presentation">

I have spent several hours today trying figure this out with no luck.  Any
help would be appreciated.

Cheers,
Henry

--
Henry Baragar
Instantiated Software
www.instantiated.ca

--
Henry Baragar
Instantiated Software
www.instantiated.ca
416-485-6343 x42


Please note my new telephone number!

<<attachment: Henry_Baragar.vcf>>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to