Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

devise redirectt after sign up

class RegistrationsController < Devise::RegistrationsController
  protected

  def after_sign_up_path_for(resource)
    '/an/example/path' # Or :prefix_to_your_route
  end
end
Comment

PREVIOUS NEXT
Code Example
Ruby :: rspec add support folder to gem 
Ruby :: ruby iterate over array 
Ruby :: shopify cart show total save 
Ruby :: ruby hash transform keys 
Ruby :: add references rails migration 
Ruby :: rails distinct 
Ruby :: ruby trim spaces 
Ruby :: ruby each_with_object 
Ruby :: table name from rails console 
Ruby :: ruby check if value in array 
Ruby :: ruby pluck 
Ruby :: how to write CSV file in rails 
Ruby :: sort array of hashes ruby 
Ruby :: ruby array prepend vs unshift 
Ruby :: starting delayed_jobs in local rails 3 
Ruby :: ruby latest version 
Ruby :: rails parse boolean 
Ruby :: rails 10 times do 
Ruby :: ruby print 
Ruby :: dynamic database connection in rails 
Ruby :: ruby attr_writer example 
Ruby :: list objects of a class ruby 
Ruby :: ruby in array 
Ruby :: rails humanize date 
Ruby :: deliver_later not sending mail in sidekiq in rails 
Ruby :: devise valid password 
Ruby :: refactor duplicate tests rspec 
Ruby :: how to install webpck on ubuntu globally 
Ruby :: logback grails log in different files 
R :: r clear variables 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =