ruby - I switched from postgres to a mysql database and get an error -


after copying app files new app folder , installing mysql through homebrew, error message when trying view website.

abstractcontroller::helpers::missinghelpererror in welcomecontroller#index missing helper file helpers//users/froy_terriquez/desktop/projects/ram/app/helpers/application_helper.rb_helper.rb           class applicationcontroller < actioncontroller::base   # prevent csrf attacks raising exception.   # apis, may want use :null_session instead. protect_from_forgery with: :exception rails.root: /users/froyterriquez/desktop/projects/ram application trace | framework trace | full trace app/controllers/application_controller.rb:1:in `<top (required)>' app/controllers/welcome_controller.rb:1:in `<top (required)>' 

welcome controller:

    class welcomecontroller < applicationcontroller include applicationhelper    def index   end    def contact   end    def   end end 

application controller:

class applicationcontroller < actioncontroller::base   # prevent csrf attacks raising exception.   # apis, may want use :null_session instead.     protect_from_forgery with: :exception end 

both helpers:

module applicationhelper  end  module welcomehelper   end 

any appreciated.

also if know of informative links let me know correct process switching databases in rails project awesome!

edit database.yml file reflect new database settings:

for example:

 development:   adapter: mysql2   encoding: utf8   database: my_app_development   pool: 5   username: root   password:   test:   adapter: mysql2   encoding: utf8   database: my_app_test   pool: 5   username: root   password:    production:   adapter: mysql2   encoding: utf8   database: ymca_gym_production   pool: 5   username: root   password: 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -