elevation / event_calendar

Show multiple, overlapping events across calendar days and rows. Rails plugin.
http://dev.elevationblog.com/2009/7/23/event-calendar-rails-plugin
MIT License
950 stars 212 forks source link

undefined method `scoped' for #<Class:0x00000004fd67f0> #91

Open anusha358 opened 8 years ago

anusha358 commented 8 years ago

when i install the gem and ran with the route /calendar..I am getting the above error. Please some one help me

gordonbisnor commented 8 years ago

@anusha358 I have been running into the same issue – this gem has not seen a new release since 2011 and it looks like is not compatible with Rails 4+

anusha358 commented 8 years ago

Thank you gordonbisnor for the information.Could you please help me in finding for rails 4.

gordonbisnor commented 8 years ago

@anusha358 –- you might try looking into updating to use with_scope? ––http://apidock.com/rails/ActiveRecord/Base/with_scope/class

gordonbisnor commented 8 years ago

@anusha358 it looks like I forked this and attempted to get it working for Rails 4. I'm no longer working on the Rails 4 branch of a project that I needed this for so not sure if I was successful, but you could try it out! https://github.com/gordonbisnor/event_calendar

nbaki commented 6 years ago

@gordonbisnor Does not work. If someone has an alternative please post. Thanks!

gordonbisnor commented 6 years ago

@nbaki Would FullCalendar work for your needs? https://fullcalendar.io/ –– it handles the JS, you can bring in events via JSON etc. I've used on a number of projects and it worked great and was easy to setup and customize as needed.

ggates1020 commented 3 years ago

I realize this is old, but I am updating an old site and ran into the issue. I have make a pull request for a fix that I know works in at least rails 4.2.8.

swapnilsawant10 commented 3 years ago

Quite an old issue but still persists, cannot find a way to work around this.