Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Pete Arevalo
12,653 PointsRails server wont run on windows git bash: "undefined method 'configure' for #<odot::Application
Any idea why rails s wont run? I am using rails v 4.0.1 and ruby v 1.9.3
2 Answers

Kang-Kyu Lee
52,045 PointsOdot::Application
might be missing. How about checking development.rb
and application.rb
file under config
folder?

Pete Arevalo
12,653 PointsHi Kang,
Thats what I initially thought, and I thought I had renamed them correctly ( they were originally labeled rails.application. Maybe i did this wrong? Here is my development.rb:
Odot::Application.configure do # Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false
# Do not eager load code on boot. config.eager_load = false
# Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false
# Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false
# Print deprecation notices to the Rails logger. config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true
# Adds additional error checking when serving assets at runtime. # Checks for improperly declared sprockets dependencies. # Raises helpful error messages. config.assets.raise_runtime_errors = true
# Raises error for missing translations # config.action_view.raise_on_missing_translations = true end
And here is my application.rb
require File.expand_path('../boot', FILE)
require 'rails/all'
Require the gems listed in Gemfile, including any gems
you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Odot class Application < odot::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
end end