search for: item_class

Displaying 7 results from an estimated 7 matches for "item_class".

Did you mean: elem_class
2007 Feb 24
1
Rails 1.2.2 link_to question
...ce is telling me that I''m an idiot and it should be obvious, or if the silence indicates that no one knows why a simple thing shouldn''t work. I''ve tried this on a linux Centos install, and now my mac. I get the same result. In my view I have <%= link_to "New #{@item_class}", {:action => ''new'', :item_class=>@item_class} %> which shows up as in the html source: <a href="/item/new">New Photo</a> note that the extra "item_class" is not getting added, such as /item/new?item_class=Photo which is what 1....
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...ex 28040f3..8b53515 100644 --- a/src/app/services/hardware_pool_service.rb +++ b/src/app/services/hardware_pool_service.rb @@ -90,7 +90,6 @@ module HardwarePoolService svc_move_items_internal(pool_id, StoragePool, storage_pool_ids, target_pool_id) end def svc_move_items_internal(pool_id, item_class, resource_ids, target_pool_id) - # from before_filter target_pool = Pool.find(target_pool_id) authorized!(Privilege::MODIFY,target_pool) lookup(pool_id, Privilege::MODIFY) diff --git a/src/app/services/pool_service.rb b/src/app/services/pool_service.rb index c05b0dc..02c63f5 10064...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...olController end def vms_json - super(items_json_internal(Vm, :tagged_vms)) + super(items_json_internal(Vm, :tagged_vms, {:select => Vm.calc_uptime})) end def pools_json @@ -76,11 +76,10 @@ class SmartPoolsController < PoolController end - def items_json_internal(item_class, item_assoc) + def items_json_internal(item_class, item_assoc, find_opts = {}) if params[:id] svc_show(params[:id]) full_items = @pool.send(item_assoc) - find_opts = {} include_pool = false else # FIXME: no permissions or usage checks here yet @@ -93,7 +9...
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
...odels/routine_exercise.rb:5 #{RAILS_ROOT}/app/models/routine.rb:2 ... snip ... #{RAILS_ROOT}/app/models/routine_exercise.rb:5 #{RAILS_ROOT}/app/models/routine.rb:2 #{RAILS_ROOT}/app/controllers/items_controller.rb:462:in `const_get'' #{RAILS_ROOT}/app/controllers/items_controller.rb:462:in `item_class'' #{RAILS_ROOT}/app/controllers/items_controller.rb:112:in `new'' So this seems to be getting into a recursive loop around the RoutineExercise belonging to Routine and Routine having many RoutineExercises, but I can''t work out why. Thanks in advance. -- R.Livsey http...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...ontroller.rb b/src/app/controllers/smart_pools_controller.rb index 8762ac0..b355f4b 100644 --- a/src/app/controllers/smart_pools_controller.rb +++ b/src/app/controllers/smart_pools_controller.rb @@ -76,11 +76,10 @@ class SmartPoolsController < PoolController end - def items_json_internal(item_class, item_assoc) + def items_json_internal(item_class, item_assoc, find_opts = {}) if params[:id] svc_show(params[:id]) full_items = @pool.send(item_assoc) - find_opts = {} include_pool = false else # FIXME: no permissions or usage checks here yet @@ -93,7 +9...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...olController end def vms_json - super(items_json_internal(Vm, :tagged_vms)) + super(items_json_internal(Vm, :tagged_vms, {:select => Vm.calc_uptime})) end def pools_json @@ -76,11 +76,10 @@ class SmartPoolsController < PoolController end - def items_json_internal(item_class, item_assoc) + def items_json_internal(item_class, item_assoc, find_opts = {}) if params[:id] svc_show(params[:id]) full_items = @pool.send(item_assoc) - find_opts = {} include_pool = false else # FIXME: no permissions or usage checks here yet @@ -93,7 +9...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...ontroller.rb b/src/app/controllers/smart_pools_controller.rb index 8762ac0..b355f4b 100644 --- a/src/app/controllers/smart_pools_controller.rb +++ b/src/app/controllers/smart_pools_controller.rb @@ -76,11 +76,10 @@ class SmartPoolsController < PoolController end - def items_json_internal(item_class, item_assoc) + def items_json_internal(item_class, item_assoc, find_opts = {}) if params[:id] svc_show(params[:id]) full_items = @pool.send(item_assoc) - find_opts = {} include_pool = false else # FIXME: no permissions or usage checks here yet @@ -93,7 +9...