I am trying to access the User-model from the controller, more specifically 
in the update-method.

class ArtistsController < ApplicationController

  hobo_model_controller

  auto_actions :all, :except => :destroy
  
  def update
    # Find all users 
    User.all.each do |j|
      # do some stuff with each user-record
    end
    
    hobo_update
  end
end



I can access all other models, but the User model just returns: 

undefined method `all' for Hobo::Controller::User:Module

I tried to change the reference to UserBase, but that didn't work either.

How can I access the User model from this controller?

This is btw hobo 1.3 edge (up-to-date as of a couple of days ago)


~Ronny

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