Custom exceptions in Ruby On Rails

config/application.rb

app/classes/exceptions/custom_error.rb

 

ActionController::UnknownFormat

 

Switch between different tabs using Capybara

 

“\xC3” from ASCII-8BIT to UTF-8 paperclip

 

CSV parse on Ruby

 

Devise ajax sign up

app/controllers/users/registrations_controller.rb 

app/views/users/registrations/_sign_up.html.erb

 

Update values when use gem config

Example

 

Custom config on Ruby on Rails

config/initializers/segment.rb

config/segment.rb