Routes & Links

Configurable URIs

Styleguide::Routing.edsurge_uri

Configurable in your Rails secrets.yml file. Defaults to "//edsurge.com"

Styleguide::Routing.dashboard_uri

Configurable in Rails secrts.yml file. Defaults to "//dashboard.edsurge.com"

Styleguide::Routing.accounts_uri

Configurable in Rails secrts.yml file. Defaults to "//accounts.edsurge.com"

Styleguide::Routing.jobs_connect_uri

Configurable in Rails secrts.yml file. Defaults to "//jobs.edsurge.com"

Styleguide::Routing.teacher_comments_uri

Configurable in Rails secrts.yml file. Defaults to "//teacher-comments.edsurge.com"

Rails Routes

Including the engine in your application will append the following routes to your application's drawn routes:

styleguide_about_url
styleguide_advertising_url
styleguide_contact_url
styleguide_ethics_statement_url
styleguide_privacy_policy_url
styleguide_sponsored_content_guidelines_url
styleguide_team_url
styleguide_terms_url
styleguide_write_for_us_url
styleguide_articles_rss_url
styleguide_dashboard_url
styleguide_events_url
styleguide_guides_url
styleguide_higher_ed_url
styleguide_jobs_url
styleguide_jobs_connect_url
styleguide_news_url
styleguide_product_reviews_url
styleguide_research_url
styleguide_search_url
styleguide_sector_url
styleguide_audience_url
styleguide_topic_url
styleguide_subscribe_url
styleguide_teacher_comments_url

These of course can be used like normal Rails routes, e.g.

= link_to "News", styleguide_news_url(query_param: 'something', another: 'asdfasdf')

Would result in the generated url //www.edsurge.com/news?another=asdfasdf&query_param=something

Social Links

Styleguide::Links::FACEBOOK_URL
Styleguide::Links::GPLUS_URL
Styleguide::Links::LINKEDIN_URL
Styleguide::Links::LINKEDIN_HE_URL
Styleguide::Links::LINKEDIN_JOBS_URL
Styleguide::Links::SOUNDCLOUD_URL
Styleguide::Links::X_COMPANY_HE_URL
Styleguide::Links::X_COMPANY_JOBS_URL
Styleguide::Links::X_COMPANY_URL
Styleguide::Links::YOUTUBE_URL

Internal Links

Styleguide::Links::CAREERS_URL