Hi Kevin

Here is the source code for the controller and it is defined as mixed
case:

class Admin::LanguagesController < Admin::AdminSiteController

  hobo_model_controller Language

  auto_actions :all, :except => [:show]

  before_filter :login_required, :except => [:login]

 def index
    hobo_index Language.apply_scopes(:search => [params
[:search], :name],
                                 :order_by => parse_sort_param
(:name, :code, :icon))
  end

end


And it all works so long as there are no validation errors.  If there
is a validation error it throws the exception.

Cheers
Geoff


On Dec 9, 11:39 pm, kevinpfromnm <[EMAIL PROTECTED]> wrote:
> Is that really lower case on languagesController?  Not sure if that's
> related since if it was lowercase I wouldn't think that it'd work at
> all.
>
> On Dec 9, 2:46 pm, geoffd123 <[EMAIL PROTECTED]> wrote:
>
> > I have an admin subsite and new edit etc work for the models that I
> > have except:
>
> > If the model falis a validation eg. validates_presence_of
>
> > Then I get the following error:
>
> >  NameError in Admin/languagesController#update
>
> > [EMAIL PROTECTED]/language' is not allowed as an instance variable name
>
> > RAILS_ROOT: /home/geoffd/projects/click66_8
> > Application Trace | Framework Trace | Full Trace
>
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 360:in `instance_variable_get'
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 360:in `re_render_form'
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 579:in `update_response'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:131:in `call'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:131:in `custom'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:160:in `call'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:160:in `respond'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:154:in `each'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:154:in `respond'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > mime_responds.rb:107:in `respond_to'
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 578:in `update_response'
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 551:in `hobo_update'
> > /usr/lib/ruby/gems/1.8/gems/hobo-0.8.3/lib/hobo/model_controller.rb:
> > 162:in `update'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > base.rb:1166:in `send'
>
> > Does anyone know a way around this,or what I am doing wrong?
>
> > Cheers
> > Geoff
>
>
--~--~---------~--~----~------------~-------~--~----~
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