Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6586331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:46:39+00:00 2026-05-25T16:46:39+00:00

I am using a event_calendar plugin with rails 2.3.8. I have events table with

  • 0

I am using a event_calendarplugin with rails 2.3.8. I have events table with name, venue and trainer columns. I want to color events based on trainer and venue. I could color it by trainer. But now I want to pass parameter to the event calendar helper considering whether it is trainer or venue. How should I pass this parameter? Anybody work with this plugin? plz help me….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:46:40+00:00Added an answer on May 25, 2026 at 4:46 pm

    If you take a look at README.rdoc you’ll get

      <%= event_calendar %>
    
    
    ==Default Options
    
    The default options for the calendar are:
    
      defaults = {
        :year => Time.zone.now.year,
        :month => Time.zone.now.month,
        :abbrev => true,
        :first_day_of_week => 0, # See note below when setting this
        :show_today => true,
        :month_name_text => Time.zone.now.strftime("%B %Y"),
        :previous_month_text => nil,
        :next_month_text => nil,
        :event_strips => [],
    
        # it would be nice to have these in the CSS file
        # but they are needed to perform height calculations
        :width => nil,
        :height => 500, 
        :day_names_height => 18,
        :day_nums_height => 18,
        :event_height => 18,
        :event_margin => 1,
        :event_padding_top => 1,
    
        :use_all_day => false,
        :use_javascript => true,
        :link_to_day_action => false
      }
    

    I take following two parameters in my calendar and override plugin helper method in the

    <%= event_calendar(user.format, outbound) %>
    

    app/helpers/calendar_helper.rb

      def event_calendar_opts(display_format, outbound)
        {
          :year => @year,
          :month => @month,
          :abbrev => nil,
          :event_strips => @event_strips,
          :display_properties => (display_format==4)? 4 : 3,
          :outbound => outbound,
          :month_name_text => I18n.localize(@shown_month, :format => "%B %Y"),
          :previous_month_text => month_link(@shown_month.last_month),
          :next_month_text => next_month_link(@shown_month.next_month)    }
      end
    
      def event_calendar(display_format, outbound)
        # args is an argument hash containing :event, :day, and :options
        index = 0
        calendar event_calendar_opts(display_format, outbound) do |args|
          html << some_html
          html
        end
      end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery FullCalendar plugin with Ruby on Rails, and now I want
I want to show events using the JQuery fullcalendar plugin (version 1.5.2). The JSON
I need to change color of some events in Fullcalendar plugin. I tried className
I'm using the event_calendar gem in a rails app. Event_calendar adds the following to
I want to built a calendar that displays events which have are stored in
I am using Flowplayer's jQuery Tools framework (specifically the tooltips plugin) in a table,
I'm using the fullCalendar jQuery plugin and it has options for adding events to
I want to create an event calendar application similar to the site http://events.stanford.edu/ using
I'm using Eclipse Indigo with the m2e Plugin (Version 1.0.1). I have two separate
I'm using the Jquery full calendar plugin, and i want to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.