{"action":"created","issue":{"url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/1","repository_url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example","labels_url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/1/comments","events_url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/1/events","html_url":"https://github.com/excid3/simple_calendar-ajax-example/issues/1","id":134327344,"number":1,"title":"Ajax with the new version of simple_calendar","user":{"login":"chrisokamoto","id":4132547,"avatar_url":"https://avatars.githubusercontent.com/u/4132547?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisokamoto","html_url":"https://github.com/chrisokamoto","followers_url":"https://api.github.com/users/chrisokamoto/followers","following_url":"https://api.github.com/users/chrisokamoto/following{/other_user}","gists_url":"https://api.github.com/users/chrisokamoto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisokamoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisokamoto/subscriptions","organizations_url":"https://api.github.com/users/chrisokamoto/orgs","repos_url":"https://api.github.com/users/chrisokamoto/repos","events_url":"https://api.github.com/users/chrisokamoto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisokamoto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T16:20:58Z","updated_at":"2016-02-17T16:24:33Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to make the new version of simple_calendar working with ajax.\r\nI saw here that you coded this in helper:\r\n```\r\ndef events_ajax_previous_link\r\n    ->(param, date_range) { link_to raw(\"&laquo;\"), {param => date_range.first - 1.day}, remote: :true}\r\n  end\r\n\r\n  def events_ajax_next_link\r\n    ->(param, date_range) { link_to raw(\"&raquo;\"), {param => date_range.last + 1.day}, remote: :true}\r\n  end\r\n```\r\n\r\nYou submitted this code 2 years ago.. This is'n't working with the new version of simple_calendar (2.0.6) and I wanted to use this version because of the styles of CSS I already have coded.. With this version, I can't create a remote link nor change the name of \"Previous\" and \"Next\" links, like the methods events_ajax_previous_link and events_ajax_next_link does. I tried to downgrade the version of simple_calendar just for testing this code and it worked perfectly...\r\n\r\nWhat should I do to have ajax links with the new version?"},"comment":{"url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/comments/185281913","html_url":"https://github.com/excid3/simple_calendar-ajax-example/issues/1#issuecomment-185281913","issue_url":"https://api.github.com/repos/excid3/simple_calendar-ajax-example/issues/1","id":185281913,"user":{"login":"excid3","id":67093,"avatar_url":"https://avatars.githubusercontent.com/u/67093?v=3","gravatar_id":"","url":"https://api.github.com/users/excid3","html_url":"https://github.com/excid3","followers_url":"https://api.github.com/users/excid3/followers","following_url":"https://api.github.com/users/excid3/following{/other_user}","gists_url":"https://api.github.com/users/excid3/gists{/gist_id}","starred_url":"https://api.github.com/users/excid3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excid3/subscriptions","organizations_url":"https://api.github.com/users/excid3/orgs","repos_url":"https://api.github.com/users/excid3/repos","events_url":"https://api.github.com/users/excid3/events{/privacy}","received_events_url":"https://api.github.com/users/excid3/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T16:24:33Z","updated_at":"2016-02-17T16:24:33Z","body":"The new one should be even easier since you're able to override the views in your app. You'll want to generate those views and take the same approach. I can update this example tonight for you!"}}