Ramaze, FullCalendar, JSON, and AJAX

22 views
Skip to first unread message

Scott LaBounty

unread,
Sep 16, 2009, 10:23:46 AM9/16/09
to ram...@googlegroups.com
All,

I have a new post up on Steamcode, http://steamcode.blogspot.com/2009/09/ramaze-full-calendar-json-and-ajax.html, about the FullCalendar and working with Ramaze, JSON, and AJAX. Thanks to everyone for taking the time to help out.

Let me know if you see any issues or if I've missed anything.

--
Scott
http://steamcode.blogspot.com/

kez

unread,
Sep 16, 2009, 11:38:27 AM9/16/09
to Ramaze
Here's a method to populate the JSON structure from a Sequel model:

http://paste.ramaze.net/32128

kez.

On Sep 16, 3:23 pm, Scott LaBounty <slabou...@gmail.com> wrote:
> All,
>
> I have a new post up on Steamcode,http://steamcode.blogspot.com/2009/09/ramaze-full-calendar-json-and-a...,

Scott LaBounty

unread,
Sep 16, 2009, 11:51:16 AM9/16/09
to ram...@googlegroups.com
Kez,

That's pretty much where I ended up with my "real" applicaton (except I'm not clever enough to remember to use map). The one thing I did do was have the model have a method for getting just the dates being asked for and it looks something like:

    def self.all_by_dates(startDate, endDate)
        filter(:date => startDate..endDate).all
    end

This will give only the dates for the month in question. Then you can use your function on fewer items and pass fewer items to the view.

Thanks for sharing the code!

Scott
--
Scott
http://steamcode.blogspot.com/
Reply all
Reply to author
Forward
0 new messages