Rails server shuts down when started

I am on step 10 and I am trying to view the website in the browser but the server keeps shutting off. I have already bundle installed and that did not do anything. Any ideas on what I can do differently?

$ rails s -p 8080 -b                                                                                                                                
Warning: You're using Rubygems with Spring. U                                                                                                      
pgrade to at least Rubygems 2.1.0 and run `gem pristin                                                                                                      
e --all` for better startup performance.                                                                                                                    
=> Booting WEBrick                                                                                                                                          
=> Rails 4.1.1 application starting in development on                                                                                                                                                                                                                                       
=> Run `rails server -h` for more startup options                                                                                                           
=> Notice: server is listening on all interfaces (0.0.                                                                                                      
0.0). Consider using (--binding option)                                                                                                           
=> Ctrl-C to shutdown server                                                                                                                                
/action_dispatch/routing/mapper.rb:230:in `default_con                                                                                                      
troller_and_action': controller name should not start                                                                                                       
with a slash (ArgumentError)                                                                                                                                
        from /home/ccuser/.gem/ruby/2.0.0/gems/actionp                                                                                                      
        from /home/ccuser/.gem/ruby/2.0.0/gems/actionp                                                                                                      
        from /home/ccuser/.gem/ruby/2.0.0/gems/actionp                                                                                                      
n `new'                                             `

Hi @cameronism,

controller name should not start with a slash

I think that might be your problem. Did you accidentally name any of your controllers “/[something]”?

Hey thanks for your response @zystvan.

The code in my controller file was incorrect. I fixed it and everything is working now.

Thank you

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.