Hi, I have searched for an answer to this, and have found a ticket which seems to address the error: http://dev.rubyonrails.org/ticket/6676 I am, however, getting a ''decimal is not a valid base type'' error when trying to return an ActiveRecord model which has a decimal value. Agile Web Development with Rails v2 does not list decimal as a supported parameter type. Is decimal supported? If not, how should this be solved? Thanks, GiantCranes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Zack Chandler
2007-Feb-02 17:14 UTC
Re: ActionWebService : decimal is not a valid base type
On 2/2/07, Giant Cranes <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > I have searched for an answer to this, and have found a ticket which > seems to address the error: > > http://dev.rubyonrails.org/ticket/6676 > > I am, however, getting a ''decimal is not a valid base type'' error when > trying to return an ActiveRecord model which has a decimal value. > > Agile Web Development with Rails v2 does not list decimal as a supported > parameter type. Is decimal supported? If not, how should this be solved? > > Thanks, > GiantCranesDecimal is not a valid base type - use float in your parameter signature. -- Zack Chandler http://depixelate.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Giant Cranes
2007-Feb-02 17:23 UTC
Re: ActionWebService : decimal is not a valid base type
> Decimal is not a valid base type - use float in your parameter > signature.Thanks. My return type is an array of ActiveRecord objects, and they have a decimal type defined. My api_method is: api_method :get_vehicles, :returns => [[Vehicle]] Is it possible to override the decimal type at this level? If not, where should I do this? Thanks, GiantCranes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/2/07, Giant Cranes <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > > Decimal is not a valid base type - use float in your parameter > > signature. > > Thanks. My return type is an array of ActiveRecord objects, and they > have a decimal type defined. My api_method is: > > api_method :get_vehicles, :returns => [[Vehicle]] > > Is it possible to override the decimal type at this level? If not, where > should I do this?It''s a bug. I ran into it in rc1 with postgresql and filed a ticket a while ago. Been long enough I can''t remember how I worked around it. Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Giant Cranes
2007-Feb-02 17:57 UTC
Re: ActionWebService : decimal is not a valid base type
> It''s a bug. I ran into it in rc1 with postgresql and filed a ticket a > while ago. Been long enough I can''t remember how I worked around it.Thanks, I notice that it was addressed in changeset 5670 and this hasn''t made it into 1.2.1. http://dev.rubyonrails.org/changeset/5670 I''m not sure what to do now. I could change my db schema to use floats instead of decimal. I could also use edge rails. I''m relatively new to rails, any suggestions? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kent Sibilev
2007-Feb-02 17:59 UTC
Re: ActionWebService : decimal is not a valid base type
The ticket http://dev.rubyonrails.org/ticket/6676 has been closed, but changes have not been merged into rails 1.2 branch. On 2/2/07, Giant Cranes <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > > I have searched for an answer to this, and have found a ticket which > seems to address the error: > > http://dev.rubyonrails.org/ticket/6676 > > I am, however, getting a ''decimal is not a valid base type'' error when > trying to return an ActiveRecord model which has a decimal value. > > Agile Web Development with Rails v2 does not list decimal as a supported > parameter type. Is decimal supported? If not, how should this be solved? > > Thanks, > GiantCranes > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Kent --- http://www.datanoise.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Giant Cranes
2007-Feb-02 18:02 UTC
Re: ActionWebService : decimal is not a valid base type
Kent Sibilev wrote:> The ticket http://dev.rubyonrails.org/ticket/6676 has been closed, but > changes have not been merged into rails 1.2 branch.Ok, I am going to take a deep breath and jump over onto edge rails. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---