O thanx Dd, here we go
class Case < ActiveRecord::Base
hobo_model # Don't put anything above this
fields do
case_name :string
beneficiary_type :string
case_status :string
achievements :string
recommendations :text
challenges :text
reason_non_resolution :text
caseable_id :integer
caseable_type :string
timestamps
end
belongs_to :caseable, :polymorphic => true, :counter_cache => true
...
and
class User < ActiveRecord::Base
hobo_user_model # Don't put anything above this
fields do
name :string, :required, :unique
email_address :email_address, :login => true
administrator :boolean, :default => false
timestamps
end
has_many :cases, :as => :caseable, :dependent => :destroy
On Wed, Mar 9, 2011 at 1:58 PM, Domizio Demichelis <[email protected]> wrote:
> I will look inti this ASAP, if you want to speed up the thing a little bit,
> please, could you create a new app with the MINIMUM addition needed to
> reprodeuce the error, and then, could you publish the model(s)? Thanks.
>
> dd
>
> On Wed, Mar 9, 2011 at 1:26 AM, Dennis saka <[email protected]> wrote:
>>
>> Hi
>>
>> I'm still experiencing this error and i've reproduced the error with a
>> newly generated application.
>> Has someone encountered this problem? or what have i missed?
>> Can someone kindly give me some pointers please
>>
>> kind regards
>> dennis
>>
>> On Tue, Mar 8, 2011 at 6:46 PM, Dennis saka <[email protected]> wrote:
>> > Hi
>> > I changed the case of the field names but nothing's changed i still
>> > get the error.
>> >
>> >
>> > On Tue, Mar 8, 2011 at 3:52 PM, Domizio Demichelis <[email protected]>
>> > wrote:
>> >> You should use lowercase field names, then retry please.
>> >>
>> >> On Tue, Mar 8, 2011 at 9:35 AM, Dennis saka <[email protected]> wrote:
>> >>>
>> >>> Hi
>> >>>
>> >>> Im getting this error when i click on the new case link when trying to
>> >>> create an new case in polymophic associations (im using the "hobo",
>> >>> ">= 1.3.0.pre29" gem
>> >>>
>> >>> ActionView::Template::Error (wrong model name: "active_record/base"
>> >>> (extracted from translation key: "active_record/base.message.no"). You
>> >>> might want to use the translate/t
>> >>>
>> >>> Hobo::I18nError in Cases#new
>> >>>
>> >>> Showing controller: cases; dryml-tag: new-page where line #1 raised:
>> >>>
>> >>> wrong model name: "active_record/base" (extracted from translation
>> >>> key: "active_record/base.message.no"). You might want to use the
>> >>> translate/t tag/method instead.
>> >>>
>> >>> Extracted source (around line #1):
>> >>>
>> >>> 0
>> >>>
>> >>> Rails.root: /home/sloth/NetBeansProjects/cdwms
>> >>> Application Trace | Framework Trace | Full Trace
>> >>>
>> >>> app/views/taglibs/auto/rapid/forms.dryml:6:in `form__for_case'
>> >>> app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_case'
>> >>> app/views/taglibs/auto/rapid/forms.dryml:4:in `form__for_case'
>> >>> app/views/taglibs/auto/rapid/forms.dryml:3:in `form__for_case'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:71:in `new_page__for_case'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:70:in `new_page__for_case'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:70:in `new_page__for_case'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:61:in `new_page__for_case'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:23:in
>> >>> `page'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:17:in
>> >>> `page'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:17:in
>> >>> `page'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:16:in
>> >>> `page'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:2:in
>> >>> `page'
>> >>> app/views/taglibs/themes/clean-sidemenu/clean-sidemenu.dryml:1:in
>> >>> `page'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:58:in `new_page__for_case'
>> >>> app/views/taglibs/auto/rapid/pages.dryml:57:in `new_page__for_case'
>> >>>
>> >>>
>> >>> below is my model code exerpts
>> >>>
>> >>> class User < ActiveRecord::Base
>> >>>
>> >>> hobo_user_model # Don't put anything above this
>> >>>
>> >>> fields do
>> >>> name :string, :required, :unique
>> >>> email_address :email_address, :login => true
>> >>> administrator :boolean, :default => false
>> >>> timestamps
>> >>> end
>> >>>
>> >>> has_many :cases, :as => :caseable, :dependent => :destroy
>> >>>
>> >>>
>> >>> and
>> >>>
>> >>>
>> >>> class Case < ActiveRecord::Base
>> >>>
>> >>> hobo_model # Don't put anything above this
>> >>>
>> >>> fields do
>> >>> Case_Name :string
>> >>> Beneficiary_Type :string
>> >>> Case_Status :string
>> >>> Achievements :string
>> >>> Recommendations :text
>> >>> Challenges :text
>> >>> Reason_non_resolution :text
>> >>> caseable_id :integer
>> >>> caseable_type :string
>> >>>
>> >>> timestamps
>> >>> end
>> >>>
>> >>> belongs_to :caseable, :polymorphic => true, :counter_cache => true
>> >>>
>> >>> Any idea what the problem might be?
>> >>>
>> >>> Kind regards
>> >>> dennis
>> >>>
>> >>> --
>> >>> 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.
>> >>>
>> >>
>> >> --
>> >> 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.
>> >>
>> >
>>
>> --
>> 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.
>>
>
> --
> 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.
>
--
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.