Ask A Question

Notifications

You’re not receiving notifications from this thread.

Issues with loading either rails s and rails c

codetoprogramsomethingmeaningful asked in Gems / Libraries

Recently made some modification and created a new file onto controller, views, but as soon as try to load with rails s or rails c, error message from the (server side, rails :

root@DESKTOP-MI3GRH3:/mnt/c/bckp/Railsapp/scheduled_tweets_flash - Signup# rails s
=> Booting Puma
=> Rails 7.0.7 application starting in development
=> Run bin/rails server --help for more startup options
Exiting
/root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/railtie/configuration.rb:96:in method_missing': undefined methodaction_controller' for #, @generators=#, @middleware=#, @javascript_path="javascript", @encoding=#Encoding:UTF-8, @allow_concurrency=nil, @consider_all_requests_local=true, @filter_parameters=[], @r_redirect=[], @helpers_paths=[], @hosts=[".localhost", #, #], @ho

As with the Rails Console :

root@DESKTOP-MI3GRH3:/mnt/c/bckp/Railsapp/scheduled_tweets_flash - Signup# rails c
/mnt/c/bckp/Railsapp/scheduled_tweets_flash - Signup/config/application.rb:4:in `module:ScheduledTweets': uninitialized constant Rails::Application (NameError)

class Application < Rails::Application
^
from /mnt/c/bckp/Railsapp/scheduled_tweets_flash - Signup/config/application.rb:3:in <main>'
from <internal:/root/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in
require'
from internal:/root/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb:38:in require'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/command/actions.rb:22:in require_application!'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/command/actions.rb:14:in
require_application_and_environment!'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/commands/console/console_command.rb:105:in perform'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor/command.rb:27:in
run'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in invoke_command'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/thor-1.2.2/lib/thor.rb:392:in
dispatch'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/command/base.rb:87:in perform'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/command.rb:48:in
invoke'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/railties-7.0.7/lib/rails/commands.rb:18:in <main>'
from <internal:/root/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in
require'
from internal:/root/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb:38:in require'
from /root/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require'
from bin/rails:4:in `

'

Can someone help as i may need to access and start work asap , thank you.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 84,111+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.