# Accessing database and rendering from a plugin

**URL:** <https://www.ruby-forum.com/t/accessing-database-and-rendering-from-a-plugin/137960>\
**Category:** Rails\
**Created:** [May 18, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/accessing-database-and-rendering-from-a-plugin/137960 "2008-05-18T23:19:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aftershock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e7dd6/32.png) [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Post date:** [May 18, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/accessing-database-and-rendering-from-a-plugin/137960/1 "2008-05-18T23:19:37Z")

</div>

Hi all,

Very fresh rails and programming newbie here; please bear with me 😃

I am using the calendar helper plugin from  
[http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin](http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin), and  
hacking around with it at the moment.

I need to be able to draw information from my main controller, model and  
database into the calendar day cells themselves - basically further  
integrate what is currently an extremely separate calendar plugin into  
the application itself.

Would someone be able to to assist in pointing me in the right  
direction? Should I be moving the helper to a model or similar so that  
the calendar is a “part of” my application, not just a plugin hanging  
off the edge of it?

Thanks for your any assistance that you can provide 🙂

James

---

<div class="post-metadata">

**Author:** ![aftershock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e7dd6/32.png) [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Post date:** [May 19, 2008, 12:03am UTC](https://www.ruby-forum.com/t/accessing-database-and-rendering-from-a-plugin/137960/2 "2008-05-19T00:03:00Z")

</div>

On Sun, 2008-05-18 at 23:19 +0200, James Wigglesworth wrote:

> integrate what is currently an extremely separate calendar plugin into  
> the application itself.
> 
> Would someone be able to to assist in pointing me in the right  
> direction? Should I be moving the helper to a model or similar so that  
> the calendar is a “part of” my application, not just a plugin hanging  
> off the edge of it?
> 
> Thanks for your any assistance that you can provide 🙂

* * *

you might want to look at eldorado to see how they are doing things…

[http://eldorado.almosteffortless.com/](http://eldorado.almosteffortless.com/)

It’s a free download

Craig

---

<div class="post-metadata">

**Author:** ![aftershock](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e7dd6/32.png) [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Post date:** [May 19, 2008, 1:31am UTC](https://www.ruby-forum.com/t/accessing-database-and-rendering-from-a-plugin/137960/3 "2008-05-19T01:31:00Z")

</div>

Craig W. wrote:

> you might want to look at eldorado to see how they are doing things…

Excellent, thanks for that Craig! I’ll have a dig around now.

Thanks again, I might come back with more questions or progress so  
others can use this in the future as well 🙂
