Sorry, I''ll explain it better.
Well, I''m starting in rails now and was testing some things with
plugins. I
wanted to create some graphs in my plugin to generate reports using the
google charts to show the data that was saved in the db. I was not able to
generate the chart, but I managed to run one of an example. Only now I have
a new problem, my plugin needs to access a data class from another plugin so
I can take the data bank, but when I try to see if they sought the data only
appears so: #.
For example: @dados = Resposta.find(:all, :conditions => ["nota = ? AND
pergunta_id = ?", "1", "2"])
This class ''Resposta'' is another plugin, how do you get these
figures in my
class the plugin I''m doing? I need them so I can use in my chart.
Since already many thanks to all!
===========================================================
Me desculpe, vou me explicar melhor.
Bom, eu estou iniciando no rails agora e estava testando algumas coisas com
plugins. Eu queria criar uns gráficos no meu plugin de geração de relatórios
usando o google charts pra mostrar os dados que foram salvos no banco. Eu
não estava conseguindo gerar gráfico, mas consegui rodar um de um exemplo.
Só que agora estou com um novo problema, meu plugin precisa acessar uns
dados de classe de outro plugin pra poder pegar os dados do banco, mas
quando eu tento ver se buscou os dados só aparece isso: # .
Por exemplo: @dados = Resposta.find(:all, :conditions => ["nota = ? AND
pergunta_id = ?", "1", "2"]).
Esta classe ''Resposta'' é de outro plugin, como faço pra obter
estes dados na
minha classe do plugin que estou fazendo? Preciso deles pra poder usar no
meu gráfico.
Desde já muito obrigada a todos!
= Juliana Cindra
2010/7/6 Bill Walton <bwalton.im-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Hi Juliana,
>
> On Mon, Jul 5, 2010 at 4:48 PM, Juliana Cindra
<jucindra-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > I''m starting at the RR, and I''m trying to use google
charts to generate
> some
> > graphs in a single plugin in rails. But I''m testing the
samples that are
> > giving errors. I think it must be configuration error. Someone who has
> used
> > google charts on rails help me?
>
> You''ll need to provide more information in order to get help.
What
> plugin are you using? Show a small example of how you''re using
it,
> and the error that you''re getting.
>
> Best regards,
> Bill
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.