canvas-lms/app/helpers
Ryan Florence 929fea181b added js_env view/controller helper
this helper is the mechanism to send data from
rails to the JavaScript w/o requiring an xhr
or dumping data into the DOM and pulling it back
out /barf

you can call it from a view or a controller

test case:
1. call `js_env :FOO => 'bar'` in a view or
   in a controller
2. load the page
3. open the web console and inspect the ENV
   global JavaScript variable
4. ENV.FOO should be 'bar', wassupnow?

Change-Id: Ie079ba0ee610fc6a9e837cd1301ee29b08201e65
Reviewed-on: https://gerrit.instructure.com/8170
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-01-19 16:10:19 -07:00
..
account_authorization_configs_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
account_notifications_helper.rb account-level notifications 2011-02-16 21:34:05 -07:00
accounts_helper.rb break SIS error/count reports into partials, fixes #3889 2011-02-23 14:54:27 -07:00
announcements_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
application_helper.rb added js_env view/controller helper 2012-01-19 16:10:19 -07:00
assessment_questions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
assignment_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
assignments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
calendars_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
collaborations_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
communication_channels_helper.rb pre-fill the correct unique_id when confirming cc's refs #5833 2011-11-09 14:58:29 -07:00
conferences_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
content_imports_helper.rb improve errors on content migrations list 2012-01-10 13:04:13 -07:00
context_modules_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
conversations_helper.rb conversation loading speedup 2011-10-04 09:54:23 -06:00
courses_helper.rb conditional tooltips for grading progress. fixes #5791 2011-10-19 10:30:38 -06:00
discussion_entries_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
discussion_topics_helper.rb don't show discussion responses in stream when not allowed 2011-11-04 12:27:27 -06:00
eportfolio_categories_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
eportfolio_entries_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
eportfolios_helper.rb various i18n fixes/deduplication 2011-07-06 17:29:33 -06:00
errors_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
external_content_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
external_tools_helper.rb basic lti support 2011-03-23 16:58:11 -06:00
facebook_helper.rb update facebook integration to oauth 2 2011-05-10 16:18:23 -06:00
folders_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
getting_started_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebook_uploads_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebooks_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
grading_standards_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
info_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
outcome_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
outcomes_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_comments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_views_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
processors_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
pseudonym_sessions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
question_banks_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_questions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_submissions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quizzes_helper.rb simplifying and correcting the stats library 2011-11-29 13:22:59 -07:00
role_overrides_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubric_assessments_controller_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubric_associations_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubrics_controller_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
search_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
sections_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
session_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
short_messages_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
sub_accounts_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
submissions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
tags_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
terms_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
tokens_helper.rb oauth 2 requests via access tokens 2011-06-02 09:15:11 -06:00
topics_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
upload_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
user_notes_helper.rb i18n user_notes 2011-06-22 09:42:41 -06:00
users_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_page_comments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_page_revisions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_pages_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
zip_file_imports_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00