can access active admin/users on local but not production - heroku

ok so I can get to active admin on local and my site just fine - within active admin I have the options to select from Pins or Users (my two models) on local, can see all of the pins and users in the db just fine. However, live (heroku) I can access active admin barnpix.com/admin and clicking on pins works just fine ..however when I click users I get a generic heroku error... please help why does this work in local but not live?
Omrails::Application.routes.draw do
get "pages/tagz"
get "pages/about"
get "posts/show"
get "posts/destroy"
root :to => 'pins#index'
get 'tags/:tag' , to: 'pins#index', as: :tag
get "posts", to: "posts#index"
resources :posts
resources :pins
get "users/show"
devise_for :users
match 'users/:id' => 'users#show', as: :user
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
devise_for :views
ActiveAdmin.routes(self)
ActiveAdmin.setup do |config|
# == Site Title
#
# Set the title that is displayed on the main layout
# for each of the active admin pages.
#
config.site_title = "BarnPix.com"
# Set the link url for the title. For example, to take
# users to your main site. Defaults to no link.
#
config.site_title_link = "http://www.barnpix.com"
# Set an optional image to be displayed for the header
# instead of a string (overrides :site_title)
#
# Note: Recommended image height is 21px to properly fit in the header
#
# config.site_title_image = "/images/logo.png"
# == Default Namespace
#
# Set the default namespace each administration resource
# will be added to.
#
# eg:
# config.default_namespace = :hello_world
#
# This will create resources in the HelloWorld module and
# will namespace routes to /hello_world/*
#
# To set no namespace by default, use:
# config.default_namespace = false
#
# Default:
# config.default_namespace = :admin
#
# You can customize the settings for each namespace by using
# a namespace block. For example, to change the site title
# within a namespace:
#
# config.namespace :admin do |admin|
# admin.site_title = "Custom Admin Title"
# end
#
# This will ONLY change the title for the admin section. Other
# namespaces will continue to use the main "site_title" configuration.
# == User Authentication
#
# Active Admin will automatically call an authentication
# method in a before filter of all controller actions to
# ensure that there is a currently logged in admin user.
#
# This setting changes the method which Active Admin calls
# within the controller.
config.authentication_method = :authenticate_admin_user!
# == Current User
#
# Active Admin will associate actions with the current
# user performing them.
#
# This setting changes the method which Active Admin calls
# to return the currently logged in user.
config.current_user_method = :current_admin_user
# == Logging Out
#
# Active Admin displays a logout link on each screen. These
# settings configure the location and method used for the link.
#
# This setting changes the path where the link points to. If it's
# a string, the strings is used as the path. If it's a Symbol, we
# will call the method to return the path.
#
# Default:
config.logout_link_path = :destroy_admin_user_session_path
# This setting changes the http method used when rendering the
# link. For example :get, :delete, :put, etc..
#
# Default:
# config.logout_link_method = :get
# == Root
#
# Set the action to call for the root path. You can set different
# roots for each namespace.
#
# Default:
# config.root_to = 'dashboard#index'
# == Admin Comments
#
# Admin comments allow you to add comments to any model for admin use.
# Admin comments are enabled by default.
#
# Default:
# config.allow_comments = true
#
# You can turn them on and off for any given namespace by using a
# namespace config block.
#
# Eg:
# config.namespace :without_comments do |without_comments|
# without_comments.allow_comments = false
# end
# == Batch Actions
#
# Enable and disable Batch Actions
#
config.batch_actions = true
# == Controller Filters
#
# You can add before, after and around filters to all of your
# Active Admin resources and pages from here.
#
# config.before_filter :do_something_awesome
# == Register Stylesheets & Javascripts
#
# We recommend using the built in Active Admin layout and loading
# up your own stylesheets / javascripts to customize the look
# and feel.
#
# To load a stylesheet:
# config.register_stylesheet 'my_stylesheet.css'
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
# config.register_stylesheet 'my_print_stylesheet.css', :media => :print
#
# To load a javascript file:
# config.register_javascript 'my_javascript.js'
# == CSV options
#
# Set the CSV builder separator (default is ",")
# config.csv_column_separator = ','
#
# Set the CSV builder options (default is {})
# config.csv_options = {}
# == Menu System
#
# You can add a navigation menu to be used in your application, or configure a provided menu
#
# To change the default utility navigation to show a link to your website & a logout btn
#
# config.namespace :admin do |admin|
# admin.build_menu :utility_navigation do |menu|
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
# admin.add_logout_button_to_menu menu
# end
# end
#
# If you wanted to add a static menu item to the default menu provided:
#
# config.namespace :admin do |admin|
# admin.build_menu :default do |menu|
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
# end
# end
# == Download Links
#
# You can disable download links on resource listing pages,
# or customize the formats shown per namespace/globally
#
# To disable/customize for the :admin namespace:
#
# config.namespace :admin do |admin|
#
# # Disable the links entirely
# admin.download_links = false
#
# # Only show XML & PDF options
# admin.download_links = [:xml, :pdf]
#
# end
# == Pagination
#
# Pagination is enabled by default for all resources.
# You can control the default per page count for all resources here.
#
#config.default_per_page = 30
# == Filters
#
# By default the index screen includes a “Filters” sidebar on the right
# hand side with a filter for each attribute of the registered model.
# You can enable or disable them for all resources here.
#
# config.filters = true
end

Related

How to use pg_search_scope with Mobility for translated attributes?

how can i use pg_search_scope in combination with Mobility for translated attributes? Available languages are :de and :en. Searching for category names return empty results. There mus be a way to search for locale_accessors, in my case it should be name_de || name_en depending on current i18n.locale settings.
Here's my controller method:
def index
#categories = params[:query].present? ? Category.search(params[:query]) : Category.all.includes(%i[string_translations])
end
Here's my model:
class Category < ApplicationRecord
extend Mobility
translates :name, type: :string
include PgSearch::Model
pg_search_scope :search,
against: [:name],
using: {
trigram: { threshold: 0.3, word_similarity: true }
}
end
Here's my mobility config:
Mobility.configure do
# PLUGINS
plugins do
# Backend
#
# Sets the default backend to use in models. This can be overridden in models
# by passing +backend: ...+ to +translates+.
#
# To default to a different backend globally, replace +:key_value+ by another
# backend name.
#
backend :key_value
# ActiveRecord
#
# Defines ActiveRecord as ORM, and enables ActiveRecord-specific plugins.
active_record
# Accessors
#
# Define reader and writer methods for translated attributes. Remove either
# to disable globally, or pass +reader: false+ or +writer: false+ to
# +translates+ in any translated model.
#
reader
writer
# Backend Reader
#
# Defines reader to access the backend for any attribute, of the form
# +<attribute>_backend+.
#
backend_reader
#
# Or pass an interpolation string to define a different pattern:
# backend_reader "%s_translations"
# Query
#
# Defines a scope on the model class which allows querying on
# translated attributes. The default scope is named +i18n+, pass a different
# name as default to change the global default, or to +translates+ in any
# model to change it for that model alone.
#
query
# Cache
#
# Comment out to disable caching reads and writes.
#
cache
# Dirty
#
# Uncomment this line to include and enable globally:
# dirty
#
# Or uncomment this line to include but disable by default, and only enable
# per model by passing +dirty: true+ to +translates+.
# dirty false
# Fallbacks
#
# Uncomment line below to enable fallbacks, using +I18n.fallbacks+.
# fallbacks
#
# Or uncomment this line to enable fallbacks with a global default.
# fallbacks { :pt => :en }
# Presence
#
# Converts blank strings to nil on reads and writes. Comment out to
# disable.
#
presence
# Default
#
# Set a default translation per attributes. When enabled, passing +default:
# 'foo'+ sets a default translation string to show in case no translation is
# present. Can also be passed a proc.
#
# default 'foo'
# Fallthrough Accessors
#
# Uses method_missing to define locale-specific accessor methods like
# +title_en+, +title_en=+, +title_fr+, +title_fr=+ for each translated
# attribute. If you know what set of locales you want to support, it's
# generally better to use Locale Accessors (or both together) since
# +method_missing+ is very slow. (You can use both fallthrough and locale
# accessor plugins together without conflict.)
#
# fallthrough_accessors
# Locale Accessors
#
# Uses +def+ to define accessor methods for a set of locales. By default uses
# +I18n.available_locales+, but you can pass the set of locales with
# +translates+ and/or set a global default here.
#
locale_accessors
#
# Or define specific defaults by uncommenting line below
# locale_accessors [:en, :ja]
# Attribute Methods
#
# Adds translated attributes to +attributes+ hash, and defines methods
# +translated_attributes+ and +untranslated_attributes+ which return hashes
# with translated and untranslated attributes, respectively. Be aware that
# this plugin can create conflicts with other gems.
#
# attribute_methods
end
end
Is it possible and how it works?
Thank you very much for help me out in this case!
You can use dynamic scope with lambda and return the config hash with the query:
pg_search_scope :search, lambda { |query|
{
against: ["name_#{I18n.locale}".to_sym],
trigram: { threshold: 0.3, word_similarity: true },
ignoring: :accents,
query: query
}
}

logstash filter encode character failed

we have a log in GB18030 charset, and we want to encode the log to UTF8 when it's shipped from logstash to elasticsearch. After read the document from logstash website, we found a filter could do this for us. I had never used RUBY before, I copied a logstash filter from logstash website and modified a little.
# Call this file 'foo.rb' (in logstash/filters, as above)
require "logstash/filters/base"
require "logstash/namespace"
require "logstash/environment"
class LogStash::Filters::Foo < LogStash::Filters::Base
# Setting the config_name here is required. This is how you
# configure this filter from your logstash config.
#
# filter {
# foo { ... }
# }
config_name "foo"
attr_accessor :logger
# New plugins should start life at milestone 1.
milestone 1
public
def register
# nothing to do
end # def register
public
def filter(event)
# return nothing unless there's an actual filter event
return unless filter?(event)
# Replace the event message with our message as configured in the
# config file.
a = event["message"].force_encoding("GB18030")
$stdout.write("\n origin:"+a+"\n")
$stdout.write("\n encoded:+ a.encode("UTF-8","GB18030")+"\n\n")
event["message"] = event["message"].encode("UTF-8","GB18030")
# filter_matched should go in the last line of our successful code
filter_matched(event)
end # def filter
end # class LogStash::Filters::Foo
Here's the screen output
origin:\xA1\xA2\xD3\xFE]\xCA\xFD\xBE\xDD\xD5\xFD\xD4\xD3\xCA\xFD\xBE\xE2\xBC\xD3
encoded:\xA1\xA2\xD3\xFE]\xCA\xFD\xBE\xDD\xD5\xFD\xD4\xD3\xCA\xFD\xBE\xE2\xBC\xD3
It seems the "encode" function didn't work. I tried encode the string above in RUBY2.1.5 interpreter, it works fine.

Where is the aspell private dictionary on Mac [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using emacs on Mac Os X and I installed aspell with homebrew. I accidentally added a wrong word to my "private dictionary", but where is that dictionary? How can I open it and see what I have added in there?
I found a similar question here (How to remove an entry from ispell private dictionary?) but I couldn't find the directories they mentioned. I found one aspell folder at \usr\local\Cellar\aspell\, but I still can't find which one is the private dictionary.
Search for a file ending in .pws -- it will probably look something like this .aspell.en.pws for English.
You can also run something like this to see where everything is located -- just change the path to wherever your own aspell executable is located:
/Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config
If you want to change things, you can create an aspell.conf and put it inside the etc folder, which should be in the same set of directories near to where the aspell executable is located. I actually had to create the etc folder and the aspell.conf because the make process of a generic installation did not create that folder. Running the above command-line will also tell you the location where aspell looks for the aspell.conf file.
Sample aspell.conf: I only use Spanish and English -- the default on my setup is the latter -- borrowed (and modified from): https://github.com/jone/dotfiles/blob/master/aspell.conf
# /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config
# conf (string)
# main configuration file
# default: aspell.conf
# home-dir (string)
# location for personal files
# default: <$HOME|./> = /Users/jone
# home-dir $HOME/Library/Preferences/aspell
home-dir /Users/HOME/.0.data/.0.emacs
# personal (string)
# personal dictionary file name
# default: .aspell.<lang>.pws = .aspell.de_CH.pws
personal .aspell.en.pws
# conf-dir (string)
# location of main configuration file
# default: <prefix:etc> = /usr/local/etc
# data-dir (string)
# location of language data files
# default: <prefix:lib/aspell-0.60> = /usr/local/lib/aspell-0.60
# data-dir /usr/local/lib/aspell-0.60
# dict-alias (list)
# create dictionary aliases
# dict-dir (string)
# location of the main word list
# default: <data-dir> = /usr/local/lib/aspell-0.60
# dict-dir /usr/local/lib/aspell-0.60
# encoding (string)
# encoding to expect data to be in
# default: !encoding = UTF-8
# filter (list)
# add or removes a filter
# filter-path (list)
# path(s) aspell looks for filters
# mode (string)
# filter mode
# default: url
# mode tex
# extra-dicts (list)
# extra dictionaries to use
# ignore (integer)
# ignore words <= n chars
# default: 1
# ignore-case (boolean)
# ignore case when checking words
# default: false
# ignore-repl (boolean)
# ignore commands to store replacement pairs
# default: false
ignore-repl false
# keyboard (string)
# keyboard definition to use for typo analysis
# default: standard
# lang (string)
# language code
# default: <language-tag> = de_CH
# local-data-dir (string)
# location of local language data files
# default: <actual-dict-dir> = /usr/local/lib/aspell-0.60/
# master (string)
# base name of the main dictionary to use
# default: <lang> = de_CH
# normalize (boolean)
# enable Unicode normalization
# default: true
# norm-required (boolean)
# Unicode normalization required for current lang
# default: false
# norm-form (string)
# Unicode normalization form: none, nfd, nfc, comp
# default: nfc
# norm-strict (boolean)
# avoid lossy conversions when normalization
# default: false
# per-conf (string)
# personal configuration file
# default: .aspell.conf
# prefix (string)
# prefix directory
# default: /usr/local
# repl (string)
# replacements list file name
# default: .aspell.<lang>.prepl = .aspell.de_CH.prepl
# run-together (boolean)
# consider run-together words legal
# default: false
# run-together-limit (integer)
# maximum number that can be strung together
# default: 2
# run-together-min (integer)
# minimal length of interior words
# default: 3
# save-repl (boolean)
# save replacement pairs on save all
# default: true
# set-prefix (boolean)
# set the prefix based on executable location
# default: true
# size (string)
# size of the word list
# default: +60
# sug-mode (string)
# suggestion mode
# default: normal
# sug-edit-dist (integer)
# edit distance to use, override sug-mode default
# default: 1
# sug-typo-analysis (boolean)
# use typo analysis, override sug-mode default
# default: true
# sug-repl-table (boolean)
# use replacement tables, override sug-mode default
# default: true
# sug-split-char (list)
# characters to insert when a word is split
# use-other-dicts (boolean)
# use personal, replacement & session dictionaries
# default: true
# variety (list)
# extra information for the word list
# warn (boolean)
# enable warnings
# default: true
# affix-compress (boolean)
# use affix compression when creating dictionaries
# default: false
# clean-affixes (boolean)
# remove invalid affix flags
# default: true
# clean-words (boolean)
# attempts to clean words so that they are valid
# default: false
# invisible-soundslike (boolean)
# compute soundslike on demand rather than storing
# default: false
# partially-expand (boolean)
# partially expand affixes for better suggestions
# default: false
# skip-invalid-words (boolean)
# skip invalid words
# default: true
# validate-affixes (boolean)
# check if affix flags are valid
# default: true
# validate-words (boolean)
# check if words are valid
# default: true
# backup (boolean)
# create a backup file by appending ".bak"
# default: true
# byte-offsets (boolean)
# use byte offsets instead of character offsets
# default: false
# guess (boolean)
# create missing root/affix combinations
# default: false
# keymapping (string)
# keymapping for check mode: "aspell" or "ispell"
# default: aspell
# reverse (boolean)
# reverse the order of the suggest list
# default: false
# suggest (boolean)
# suggest possible replacements
# default: true
# time (boolean)
# time load time and suggest time in pipe mode
# default: false
#######################################################################
#
# Filter: context
# experimental filter for hiding delimited contexts
#
# configured as follows:
# f-context-delimiters (list)
# context delimiters (separated by spaces)
# f-context-visible-first (boolean)
# swaps visible and invisible text
# default: false
#######################################################################
#
# Filter: email
# filter for skipping quoted text in email messages
#
# configured as follows:
# f-email-quote (list)
# email quote characters
# f-email-margin (integer)
# num chars that can appear before the quote char
# default: 10
#######################################################################
#
# Filter: html
# filter for dealing with HTML documents
#
# configured as follows:
# f-html-check (list)
# HTML attributes to always check
# f-html-skip (list)
# HTML tags to always skip the contents of
#######################################################################
#
# Filter: sgml
# filter for dealing with generic SGML/XML documents
#
# configured as follows:
# f-sgml-check (list)
# SGML attributes to always check
# f-sgml-skip (list)
# SGML tags to always skip the contents of
#######################################################################
#
# Filter: tex
# filter for dealing with TeX/LaTeX documents
#
# configured as follows:
# f-tex-check-comments (boolean)
# check TeX comments
# default: false
# f-tex-command (list)
# TeX commands
#######################################################################
#
# Filter: texinfo
# filter for dealing with Texinfo documents
#
# configured as follows:
# f-texinfo-ignore (list)
# Texinfo commands to ignore the parameters of
# f-texinfo-ignore-env (list)
# Texinfo environments to ignore
These are my notes for installing aspell on Windows and OSX:
OSX -- To dump the aspell configuration in OSX type:
# /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell --lang=en dump config
The aspell.conf goes into the .../etc directory
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
OSX -- ASPELL -- Binary
* unpack aspell-0.60.6.tar.gz
* cd over to the root directory of the unpacked source
PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
--prefix=$HOME/.0.data/.0.emacs/elpa
make
sudo make install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
OSX -- ASPELL -- DICTIONARY -- English
* unpack aspell6-en-7.1-0.tar.bz2
* cd over to the root directory of the unpacked source
./configure \
--vars PATH=$PATH:/Users/HOME/.0.data/.0.emacs/elpa/bin
make
sudo make install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
OSX -- ASPELL -- DICTIONARY -- Spanish
* unpack aspell6-es-1.11-2.tar.bz2
* cd over to the root directory of the unpacked source
./configure \
--vars PATH=$PATH:/Users/HOME/.0.data/.0.emacs/elpa/bin
make
sudo make install
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Windows XP -- install:
BASE: Aspell-0-50-3-3-Setup.exe
English: Aspell-en-0.50-2-3.exe
Spanish: Aspell-es-0.50-2-3.exe
Windows XP -- create an aspell.conf file at the following location:
c:/Program Files/Aspell/aspell.conf
# aspell.conf
# To dump the configuration, type into the terminal:
# "c:/Program Files/Aspell/bin/aspell.exe" --lang=en dump config
home-dir y:\.0.emacs
personal .aspell.en.pws
repl .aspell.en.prepl

Enable/disable javascript using Selenium WebDriver

For some reason, I've to disable javascript for Firefox (Manually, we do by following steps mentioned http://support.mozilla.org/en-US/kb/javascript-settings-for-interactive-web-pages#w_enabling-and-disabling-javascript). How can this be achieved by Selenium WebDriver using Ruby?
Yes, It is possible. But a different way. You first need to look into the link
Selenium::WebDriver::Firefox::Profile #[]=(key, value).
JavaScript settings
Once you would visit the link,try the below code :
require 'selenium-webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile["javascript.enabled"] = false
driver = Selenium::WebDriver.for(:firefox, :profile => profile)
profile
# => #<Selenium::WebDriver::Firefox::Profile:0x89c7568
# #additional_prefs=
# {"javascript.enabled"=>false, "webdriver_firefox_port"=>7055},
# #extensions=
# {:webdriver=>
# #<Selenium::WebDriver::Firefox::Extension:0x89c6488 # !> previous definition of proxy= was here
# #path=
# "/home/kirti/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.33.0/lib/selenium/webdriver/firefox/extension/webdriver.xpi",
# #should_reap_root=true>},
# #load_no_focus_lib=false,
# #model=nil,
# #native_events=false,
# #secure_ssl=false,
# #untrusted_issuer=true>
Once your browser window will be opened up through the above code,then check the Preferences from Edit->Preferences->content,then you would see that Enable JavaScript: option is unchecked.

The page you are looking for doesn't exist. root_to

I have an app that works fine locally, but than I try to push to heroku and the root_to route doesn't work.
I've gone through and looked at all the other posts for this, but none of them are for the route_to file and non of the fixes I have found online are working.
I have activeadmin installed so I'm not sure if that is affecting it. I'm using Devise to handle users.
Please help, this is a simple site, I'm not sure why it's causing so much trouble.
Github repo: https://github.com/spq24/seered
Routes.rb
Seered::Application.routes.draw do
break if ARGV.join.include? 'assets:precompile'
ActiveAdmin.routes(self)
devise_for :admin_users, ActiveAdmin::Devise.config
devise_for :users
root :to => 'pages#home'
get "pages/home"
match '/about', to: 'pages#about'
Rake Routes output:
admin_root /admin(.:format)
admin/dashboard#index
batch_action_admin_admin_users POST /admin/admin_users/batch_action(.:for
at) admin/admin_users#batch_action
admin_admin_users GET /admin/admin_users(.:format)
admin/admin_users#index
POST /admin/admin_users(.:format)
admin/admin_users#create
new_admin_admin_user GET /admin/admin_users/new(.:format)
admin/admin_users#new
edit_admin_admin_user GET /admin/admin_users/:id/edit(.:format)
admin/admin_users#edit
admin_admin_user GET /admin/admin_users/:id(.:format)
admin/admin_users#show
PUT /admin/admin_users/:id(.:format)
admin/admin_users#update
DELETE /admin/admin_users/:id(.:format)
admin/admin_users#destroy
admin_dashboard /admin/dashboard(.:format)
admin/dashboard#index
batch_action_admin_users POST /admin/users/batch_action(.:format)
admin/users#batch_action
admin_users GET /admin/users(.:format)
admin/users#index
POST /admin/users(.:format)
admin/users#create
new_admin_user GET /admin/users/new(.:format)
admin/users#new
edit_admin_user GET /admin/users/:id/edit(.:format)
admin/users#edit
admin_user GET /admin/users/:id(.:format)
admin/users#show
PUT /admin/users/:id(.:format)
admin/users#update
DELETE /admin/users/:id(.:format)
admin/users#destroy
batch_action_admin_comments POST /admin/comments/batch_action(.:format
admin/comments#batch_action
admin_comments GET /admin/comments(.:format)
admin/comments#index
POST /admin/comments(.:format)
admin/comments#create
admin_comment GET /admin/comments/:id(.:format)
admin/comments#show
new_admin_user_session GET /admin/login(.:format)
active_admin/devise/sessions#new
admin_user_session POST /admin/login(.:format)
active_admin/devise/sessions#create
destroy_admin_user_session DELETE|GET /admin/logout(.:format)
active_admin/devise/sessions#destroy
admin_user_password POST /admin/password(.:format)
active_admin/devise/passwords#create
new_admin_user_password GET /admin/password/new(.:format)
active_admin/devise/passwords#new
edit_admin_user_password GET /admin/password/edit(.:format)
active_admin/devise/passwords#edit
PUT /admin/password(.:format)
active_admin/devise/passwords#update
new_user_session GET /users/sign_in(.:format)
devise/sessions#new
user_session POST /users/sign_in(.:format)
devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format)
devise/sessions#destroy
cancel_user_registration GET /users/cancel(.:format)
devise/registrations#cancel
user_registration POST /users(.:format)
devise/registrations#create
new_user_registration GET /users/sign_up(.:format)
devise/registrations#new
edit_user_registration GET /users/edit(.:format)
devise/registrations#edit
PUT /users(.:format)
devise/registrations#update
DELETE /users(.:format)
devise/registrations#destroy
root /
pages#home
pages_home GET /pages/home(.:format)
pages#home
about /about(.:format)
Config/Environments/production
Seered::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true
# Defaults to nil and saved in location specified by config.assets.prefix
# config.assets.manifest = YOUR_PATH
# Specifies the header that your server uses for sending files
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
# See everything in the log (default is :info)
# config.log_level = :debug
# Prepend all log lines with the following tags
# config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production
# config.cache_store = :mem_cache_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode
# config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
#Domain name for Devise
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.assets.initialize_on_precompile = false
end
Try putting the root route first. That's typically recommended because it's usually the most-accessed route in the application.

Resources