Mirv / rubyproject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# Readme

  • Mirv’s trouble shooting steps

  • To Do Listing

  • Beta Listing


Javascript trouble shooting stuff …

- First we need to decide if it's a loading issue - Open the web browser console & check `elements` for your js file names
... saw the cocoon was loaded under the "elements" section 
- Opened the /layouts/application.html.erb file & ensured there was only one javascript_include_tag.  
- Also that the javascript_include_tag was in the <head> tag & that the head tag is properly closed with </head>
- Look for other non-essential or extra service loading files
... Sumo was generating 4 errors in the chrome console, so I commented that out
 - Checked the /app/assets/javascript folder for the application.js file, also that there's no .coffee files (rails autos them)
... for some reason, you have `app/assets/javascript/exercise.coffee` showing up in the directory 
- Check inside the application.js file ...
- Check order of your /app/assets/javascript/application.js files being loaded
... yours is wrong ... the `//= require_tree .` 
... absolutely must be at the bottom or you're going to have issues including all the files.
- Additionally, you had two files which did not have the required, `//= ` in front of them.  It's required to load them
- Ensure no extra scripts being loaded in the views, I use `grep -r 'script' /app` & check any spot that shows up
... I'm finding scripts in your view files instead of the assets files for javascript ...
If the asset asset is loading, we know it's either a conflict or poorly written code
- Insert a piece of test code in the console so when the $.document or the turbolinks finished loading to see if it's poor code
... they will report to console a string ("Page -- Loaded") in my case, 
- If it doesn't load, it's a conflict with other java files, if it loads, it's just your code needs to be fixed
- I pull all the entries from the application.js except a test.js file (look up how to capture to log js to console)
- At this point it should work if everything before it passed ... if not you might have corrupt files 
... you should go into application.html.erb & use javascript_include_tag to include a CDN version of Jquery (google it)
- Assuming the test.js works ... 
... first, in your `app/assets/javascript/application.js`, at the bottom of the file up the `//= .` & save it ...
... now, you should re-add your js files to the app/assets/javascript one at a time, testing each time by refreshing the ...
... webpage, possibly restarting the server after copying the file in & doing a rake or rails assets like shown below 
... `rails assets:clean` & the `rails assets:precompile`

to do first:

  • fix delete posts

  • add images parralax image to aws

  • go through every page and double check and every file

  • fix facebook login by changing details in facebook app homepage

  • fix workout show on users homepage

  • fix delete review function

  • fix javascript on login page

  • get rid of inline javascripts

Beta:

  • add percentages to workout plans

  • add way of limiting access to new styles etc

  • work on styling for ipads

  • make home page more appealing (images of what you can do under text)

  • come back to the calories part

  • build forum

  • build favourite feature

  • add a meal plan feature

  • fix workout show page to only show user who posted, along with a button to add them as a friend and message them

  • complete phone notes

  • add dropdown box for workouts

  • refactor and speed up

  • add gravatar to mailbox

  • add font awesomes to icons

  • change to ‘birthday’ social share icons

  • add measurements again

  • change to link back to previous page

  • add redcarpet and friendly_id

  • add confirmaions in devise then add promo html markup to the mailer

About


Languages

Language:HTML 32.6%Language:Ruby 28.2%Language:CoffeeScript 19.3%Language:JavaScript 17.1%Language:CSS 2.7%Language:Shell 0.1%