On 20 December 2013 03:07, Aniruddha Barapatre <aniruddhabarapa...@gmail.com> wrote: > My current ruby version is ruby 2.0.0p247 (2013-06-27 revision 41674) > [x86_64-darwin13.0.0] and rails version is 4.0.0 > > Every time I run any rails command I get following message first: > > > /Users/aniruddhabarapatre1/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler- > 1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir > /usr/local in PATH, mode 040777
I don't use a Mac but that appears to be warning you that the folder mentioned can be written to by any user. Whether that is normal for a Mac I don't know. As far as rails is concerned it is just a warning. > > I was able to create new rails app, but when I start the server using > > rails server or rails s > > I get following message --- > > /Users/aniruddhabarapatre1/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: > warning: Insecure world writable dir /usr/local in PATH, mode 040777 > => Booting WEBrick > => Rails 4.0.0 application starting in development on http://0.0.0.0:3000 > => Run `rails server -h` for more startup options > => Ctrl-C to shutdown server > Exiting > /Users/aniruddhabarapatre1/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in > `rescue in execute_if_updated': > Rails::Application::RoutesReloader#execute_if_updated delegated to > updater.execute_if_updated, but updater is nil: > #<Rails::Application::RoutesReloader:0x007f9019eec2c0 > @paths=["/Users/aniruddhabarapatre1/RubyRails/profile/config/routes.rb"], > @route_sets=[#<ActionDispatch::Routing::RouteSet:0x007f9019d795c8>]> > (RuntimeError) > from > /Users/aniruddhabarapatre1/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in > `execute_if_updated' > from > /Users/aniruddhabarapatre1/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in > `block in <module:Finisher>' ...... > from /Users/aniruddhabarapatre1/RubyRails/profile/config/environment.rb:5:in > `<top (required)>' Did you get any errors when you ran bundle install? Do you get the above error with the application as generated by 'rails new' or have you made some changes? Post the first few lines of environment.rb, making sure it is clear which is line 5, where the error is occurring. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvXnzbc3RtzCWQmu%3DDkuNzutZTE9VksxRhJh45FbgM3_w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.