Skip to content
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

Getting started: Errors #1

Closed
SoxFace opened this issue Nov 4, 2016 · 1 comment
Closed

Getting started: Errors #1

SoxFace opened this issue Nov 4, 2016 · 1 comment

Comments

@SoxFace
Copy link

SoxFace commented Nov 4, 2016

Hi there,

Setting up this repo and I hit a few errors. Thought I'd share them here for good measure as they were quick and easy fixes.

Error 1
undefined method for' for #Devise::ParameterSanitizer:0x007fecfeb4bef8`

so I changed 'for' to 'permit' in registrations_controller.rb based on this suggestion which worked.

Error 2
NameError - undefined local variable or method new_canvas_authentication_path' for #<#Class:0x007fcc624046e8:0x007fcc69eac0d0>
Did you mean? new_admin_canvas_authentication_path:`

so I added 'admin' to the _links.html.erb which worked.

Newbie Error: Email confirmation
Got the app up and running and when signing up, I didn't receive an email. It took me a few minutes til I found it in the terminal #newbie. Then I just copied the href into the browser to confirm the account #bingo

`Devise::Mailer#confirmation_instructions: processed outbound mail in 247.2ms

Sent mail to sonya.corcoran@uts.edu.au (9.1ms)
Date: Fri, 04 Nov 2016 13:05:05 +1100
From: admin@example.com
Reply-To: admin@example.com
To: sonya.corcoran@uts.edu.au
Message-ID: 581becd152c99_33c43fe630c3fa04122d@VCGMLB014B00011.local.mail
Subject: Confirmation instructions
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit

Welcome sonya.corcoran@uts.edu.au!

You can confirm your account email through the link below:

Confirm my account

`

Error 3
When signing out:

ActionController::RoutingError at /users/sign_out uninitialized constant UsersController

Still working on this one and will update once I've worked it out.

jbasdf pushed a commit that referenced this issue Dec 9, 2016
* Adds travis and hound and stuff

* Kewl status to the README

* Puts more cool stuff in the readme

* kills old file

* Adds coveralls for rails

* double trouble

* merges results?

* Adds Coveralls to the gemlock
jbasdf added a commit that referenced this issue Feb 8, 2017
Fix linting violations in javascript

Approved-by: Justin Ball
@jbasdf
Copy link
Contributor

jbasdf commented Feb 16, 2017

Error #1 should be fixed in the latest version:
https://github.com/atomicjolt/lti_starter_app/blob/master/app/controllers/registrations_controller.rb

Error #2 should be fixed as we've removed new_canvas_authentication_path from _links.html.erb

I believe the default configuration is for the app to not send email in developer mode. You can change it in developer.rb by setting the following to true:
config.action_mailer.perform_deliveries = false

You'll also need to configure a mail server.

Error 3 should also be fixed. Use "destroy_user_session_url" to generate the url. Note that we've configured Devise so that it will use a 'get' instead of a 'delete' to sign the user out. We did that so that the client app could easily display a sign out link for the user.

@jbasdf jbasdf closed this as completed Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants