marcos
marcos

Reputation: 42

AbstractController::Helpers::MissingHelperError: Missing helper file helpers

I created a new proyect[sic] in rails:

$rails new my_app 
$rail server

and it works just fine, but when I try to add more stuff:

$rails generate scaffold post title:string body:string
$rails db:migrate
$rails server

then I receive this error:

AbstractController::Helpers::MissingHelperError in PagesController#dashboard
Missing helper file helpers//users/jamesfend/sites/feedbackz/app/helpers/application_helper.rb_helper.rb

Extracted source (around line #1):
1 class ApplicationController < ActionController::Base    
2 # Prevent CSRF attacks by raising an exception.
3 # For APIs, you may want to use :null_session instead.
4 protect_from_forgery with: :exception

Im in windows 10 working with Git Bash v:2.13, rails v:5.0.1 and ruby v:2.2.6, I tried to change the names to capitals letters; I tried:

cd ~
mv projects projects1
mv projects1 projects

Does anyone know how to fix it?

Upvotes: 1

Views: 2067

Answers (1)

marcos
marcos

Reputation: 42

i finally know what happend, it was really simple. i just update all the ruby gems doing gem updateand now it works. there was one gem (rdoc) that i couldnt update but it still worked

Upvotes: 1

Related Questions