You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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! :)
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.
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.
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
The text was updated successfully, but these errors were encountered: