-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cant make to show the fullCalendar #90
Comments
First you have to add to your gem file |
It's fixed now. So when you install the gem fullcalendar you also install gem 'jquery-rails' , which is great but i didn't know, but should have know that when i have on my page jquery allready mentiond, you have to separate them like in this |
the thing is that in Rails 5.1, the gem 'jquery-rails' is not by default, so you have to add it and install it. And yes, should be a warning in the readme. |
Yes, i know that 5.1 doesn't include it, and that is why in posted that
line of code, as other people :
https://stackoverflow.com/questions/43020438/fullcalendar-fullcalendar-is-not-a-function
but then i didnt know that they interfere, so if you put some line in the
readme or just, a note to:
https://stackoverflow.com/questions/528241/how-do-i-run-different-ve%E2%80%8C%E2%80%8Brsions-of-jquery-on-%E2%80%8C%E2%80%8Bthe-same-page
and that helps other it will be great, so that they dont have to go tru that
thank you for everything you are doing and for the amazing gem
На пн, 23.07.2018 г. в 1:55 ч. Aarón Ríos Retana <[email protected]>
написа:
… the thing is that in Rails 5.1, the gem 'jquery-rails' is not by default,
so you have to add it and install it. And yes, should be a warning in the
readme.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ak8S58kmNM4aztwt1c2oilL4oi-khfutks5uJQLsgaJpZM4VZraM>
.
|
issue bokmann#90 fix
Since this issue is still open, perhaps it's worthwhile if I also say that I cannot get the calendar to show in my app, despite following the instructions in detail. I have it set up to display a calendar on a page that requires devise authentication (i.e. in my calendars controller, before_action :authenticate_user! for the show action). My gemfile:
I also have jquery installed and jquery-ui. My application.js:
My application.scss My calendar#show page Note: I am not using turbolinks. I've tried the solutions mentioned under this issue (and another similar issue that is already closed), as well as almost everything there is on stackoverflow. Also tried to install turbolinks again to see if it was the problem but still not working. Can anyone help me figure out what may be wrong? Thanks. |
You should write what you tried, I feel people helps you more when you show what you tried. For example, have you tried writing on console full calendar init function?The more detail the better. Have you read turbolinks documentation? Post that there, maybe you have the wrong event name? Maybe there is an error on browser console? Are all scripts loaded in the page in the correct order? What does each part of your code return? Try each part in console to check your assumptions and post that too. Can you give the code in github ? All of it? |
Hi @Oredna, here's my repo: https://github.com/snsmith92/enstyleme/tree/calendar There is no browser console error and I'm not using turbolinks in my app so I did not read the documentation. I tried the following (based on stack overflow queries):
|
check if you have in your application.js |
Hi @elmoaaron sorry for answering so late. Yes, I do have those in my application.js |
Can u upload your project to GitHub?, and then we can check it out and test |
It worked for me, for example: in Gemfile
in application.js
in application.css
in app/views/index.html.erb
For the main problem, there is still no good news. |
I read on a stack overflow answer that you have to populate the full calendar with data in the .fullCalendar() method. Here's the example they provided:
Here's the original link: https://stackoverflow.com/questions/39757392/fullcalendar-in-ruby-on-rails-is-not-working |
I have a ruby on rails app, that i tryed to implement the FullCalendar, but when i open the view is showing nothing.
My Gemfile :
This is my application.js
My application.css
My view
<div id="calendar"></div>
If it helps this is my git hub https://github.com/Oredna/Prawo
I dont know what to do, i have tryed everything, and i dont know what to do anymore.
The text was updated successfully, but these errors were encountered: