Open kingcons opened 9 years ago
I've gotten devise to correctly create users, send confirmation emails, etc, but I'm getting a very strange error when I try to log in:
AbstractController::DoubleRenderError in Devise::SessionsController#create
Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
# Check for double render errors and set the content_type after rendering.
def render(*args) # nodoc:
raise ::AbstractController::DoubleRenderError if self.response_body
super
end
I've commented out my registrations and sessions controllers, so I'm not quite sure where the interference is coming from.
In any case, here's the repo: https://github.com/BrianDunlap89/liftr
I'm going to keep messing with it, but I'm stepping back from it for awhile to decompress.
Because I was having trouble with devise, I went ahead and cloned the original repo so I could implement some other gems. I've currently got Bullet up and working, and I've been messing around making crappy (n+1) requests to see what kind of logs they produce. For some reason, the logs aren't feeding into my rails server logs (which they're apparently supposed to do), so I'm gonna keep messing with that for awhile too.
Anywho, here's the duplicated repo that includes Bullet: https://github.com/BrianDunlap89/liftr-clone
In preparation for your final project, this assignment will both get you doing research and self-directed development as well as growing an existing, complex application.
Extend your reddit apps to include additional functionality and learn a bit about the Rails ecosystem! Let Rickard and I know when you're confused researching any of the gems so we can answer questions! :)
Full description here: https://github.com/TIY-ATL-ROR-2015-Sep/lectures/blob/master/wk09-advanced-interneting/tue/questions.md