i trying make app in rails 4. i trying follow along tutorial: http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/ i have moved after_sign_in_path omniauth callbacks controller application controller, can extend it. my current attempt in application controller is: def after_sign_in_path_for(resource) if !resource.email_verified? finish_signup_path(resource) elsif params[:redirect_to].present? store_location_for(resource, params[:redirect_to]) elsif request.referer == new_session_url profile_path(resource.profile) # or whatever route destination want else store_location_for(resource) || request.referer || root_path end end when try this, error: argumenterror in users::omniauthcallbackscontroller#linkedin wrong number of arguments (0 1+) it highlights line of above method: elsif request.referer == new_session_url i don't know error message means....
so i'm working on app, trying work on multiple layouts within tabhost. when try reorder layouts within tabhost creates ide error, , fails render. experienced java, first attempt @ working android studio. here's error execute command activetool: com.intellij.designer.designsurface.tools.selectiontool@3e7bfc0b sdk: android 6.0 - api 23 java.lang.arrayindexoutofboundsexception: 0 @ com.intellij.android.designer.model.radviewcomponent.updatetag(radviewcomponent.java:105) @ com.intellij.android.designer.model.radviewcomponent.updatetag(radviewcomponent.java:105) @ com.intellij.android.designer.model.radcomponentoperations$1.run(radcomponentoperations.java:96) @ com.intellij.openapi.application.impl.applicationimpl.runwriteaction(applicationimpl.java:931) @ com.intellij.android.designer.model.radcomponentoperations.movecomponent(radcomponentoperations.java:80) @ com.intellij.android.designer.designsurface.abstracteditoperation.execute(abstracteditoperation.java:49) @ com.inte...
Comments
Post a Comment