I was following the instructions at http://www.activeadmin.info/docs/0-installation.html#gemfile under the heading Register your models with Active Admin. Before adding the resource of Post I was able to start my server just fine. Once I added the resource of Post, it would no longer start. It was giving me an error about the I18n.config.enforce_available_locales needing to be set to false to prevent the error message. I found another Stack Overflow post which said to set this to false in the application.rb file. After doing this the message no longer shows in my Terminal interface, but the servers don't start.
Now I am getting the following output in Terminal when I run $ rails server
/Applications/MAMP/htdocs/ruby-review/app/admin/post.rb:1:in `<top (required)>': uninitialized constant Post (NameError)
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin/application.rb:179:in `load'
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin/application.rb:171:in `block in load!'
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin/application.rb:171:in `each'
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin/application.rb:171:in `load!'
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin/application.rb:195:in `routes'
from /Library/Ruby/Gems/2.0.0/bundler/gems/active_admin-9ca081f47ab4/lib/active_admin.rb:80:in `routes'
from /Applications/MAMP/htdocs/ruby-review/config/routes.rb:3:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:341:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:341:in `eval_block'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:319:in `draw'
from /Applications/MAMP/htdocs/ruby-review/config/routes.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.3/lib/active_support/file_update_checker.rb:75:in `call'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.3/lib/active_support/file_update_checker.rb:75:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:27:in `updater'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:30:in `run'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/application.rb:215:in `initialize!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Applications/MAMP/htdocs/ruby-review/config/environment.rb:5:in `<top (required)>'
from /Applications/MAMP/htdocs/ruby-review/config.ru:3:in `block in <main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Applications/MAMP/htdocs/ruby-review/config.ru:in `new'
from /Applications/MAMP/htdocs/ruby-review/config.ru:in `<main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:48:in `app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:75:in `start'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:76:in `block in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
How to I initialize the Constant of Post?
My apologies if these errors seem obvious to some. I am still new to rails.
You have to have a Post model. Do this:
$ rails g model Post
$ rake db:migrate
Related
I am able to generate a url and associated web page with the help of the rails generate controller static_pages about. So the url would be something like this www.bla.com/static_pages/about'. Now I want to generate this urlbla.com/help` without the use of generate,
I added a route in routes.rb like this
get 'help'
Then I added an action in application_controller.rb like this
def hello
render text: "Hello"
end
Then when started the server, I get the following error
Exiting
/usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:275:in `check_part': Missing :controller key on routes definition, please check your routes. (ArgumentError)
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:255:in `check_controller_and_action'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:178:in `normalize_options!'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:100:in `initialize'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:78:in `new'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:78:in `build'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:1559:in `add_route'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:1536:in `decomposed_match'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:1517:in `block in match'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:1507:in `each'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:1507:in `match'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:689:in `map_method'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/mapper.rb:650:in `get'
from /home/ubuntu/workspace/sample_app/config/routes.rb:12:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
from /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_dispatch/routing/route_set.rb:410:in `draw'
from /home/ubuntu/workspace/sample_app/config/routes.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `block in load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:40:in `each'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/file_update_checker.rb:75:in `call'
from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/file_update_checker.rb:75:in `execute'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:27:in `updater'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
from /home/ubuntu/workspace/sample_app/config/environment.rb:5:in `<top (required)>'
from /home/ubuntu/workspace/sample_app/config.ru:3:in `require'
from /home/ubuntu/workspace/sample_app/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /home/ubuntu/workspace/sample_app/config.ru:in `new'
from /home/ubuntu/workspace/sample_app/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/server.rb:61:in `app'
from /usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/server.rb:78:in `start'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/sample_app/bin/rails:8:in `require'
from /home/ubuntu/workspace/sample_app/bin/rails:8:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/ubuntu/workspace/sample_app/bin/spring:13:in `require'
from /home/ubuntu/workspace/sample_app/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Missing :controller key on routes definition, please check your
routes. (ArgumentError)
As the error states, you need to specify controller and action matching to the route. The below should work.
get "help", to: 'static_pages#about', as: 'help'
^^^^^^ ^^^^
controller action
Also, I suggest you to follow these Guides for clear understanding on how to define the routes.
I just now my rails app to rails 4 from rails 3. I am not able to get it to work. I have done all the necessary configuration removal and addition whereever necessary. But now I am facing this. IS the question too blunt? IF so comment on what information is needed to make it more understandable. I am a totally new to rails, please help.
/home/aravind/Documents/dev/ptl/config/initializers/simple_form.rb:8:in `block in <top (required)>': undefined method `wrappers' for SimpleForm:Module (NoMethodError)
from /usr/local/lib/ruby/gems/2.0.0/gems/simple_form-1.4.1/lib/simple_form.rb:143:in `setup'
from /home/aravind/Documents/dev/ptl/config/initializers/simple_form.rb:2:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/aravind/Documents/dev/ptl/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/aravind/Documents/dev/ptl/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/aravind/Documents/dev/ptl/config.ru:in `new'
from /home/aravind/Documents/dev/ptl/config.ru:in `<main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
it looks like you are running simple_form 1.4.1 try upgrading it to the latest version. which should work with rails 4. if you are specifying a version in your Gemfile remove the version tag, and run bundle update
Give this a go gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'. I think you need a more recent version of simple_form.
I am following the tutorial on http://ruby.railstutorial.org/ and now I am not able to start the server. In my gemfile I am using ruby 2.0.0 and rails 4.0.0.rc1 - then I tried changing back to ruby 1.9.3 and rails 3.2.13 - still not working
this is what terminal tells me:
/config/environments/development.rb:1:in `<top (required)>': uninitialized constant FourTest (NameError)
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/engine.rb:590:in `each'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/engine.rb:590:in `block in <class:Engine>'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:30:in `run'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:44:in `each'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/markustorok/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/application.rb:214:in `initialize!'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/markustorok/Dropbox/2Working/WebDesign/Ruby/rails_projects/speiseplan/config/environment.rb:5:in `<top (required)>'
from /Users/markustorok/Dropbox/2Working/WebDesign/Ruby/rails_projects/speiseplan/config.ru:3:in `require'
from /Users/markustorok/Dropbox/2Working/WebDesign/Ruby/rails_projects/speiseplan/config.ru:3:in `block in <main>'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/markustorok/Dropbox/2Working/WebDesign/Ruby/rails_projects/speiseplan/config.ru:in `new'
from /Users/markustorok/Dropbox/2Working/WebDesign/Ruby/rails_projects/speiseplan/config.ru:in `<main>'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/commands/server.rb:48:in `app'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/commands/server.rb:75:in `start'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:80:in `block in <top (required)>'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:75:in `tap'
from /Users/markustorok/.rvm/gems/ruby-2.0.0-p0/gems/railties-4.0.0.rc1/lib/rails/commands.rb:75:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Do you have any initialisers or lines in config files that make a call to a FourTest class? Because that class can't be found. Start by searching your code for FourTest then check that you've followed naming conventions on the file that contains the class and that it's in a folder that gets loaded by default (models folder) or that you are manually loading it before using it (lib folder, etc).
Here is annoyance I have with strack traces in rails -- they print the error first which means to view any error, you have scroll up in your termanl to see what the error is.
is there a way by which the error & stracktrace can be printed in reverse order, so you can view the error without having to scroll. for example:
This is rails/ruby currently prints stracktraces:
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /demo/config/environment.rb:5:in `<top (required)>'
from /demo/config.ru:3:in `require'
from /demo/config.ru:3:in `block in <main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /demo/config.ru:in `new'
from /demo/config.ru:in `<main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Is there a way by which I can get this same stracktrace in reverse order, so I don't have to scroll my terminal everytime i get a error. something similar to this:
from bin/rails:4:in `<main>'
from bin/rails:4:in `require'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /demo/config.ru:in `<main>'
from /demo/config.ru:in `new'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /demo/config.ru:3:in `block in <main>'
from /demo/config.ru:3:in `require'
from /demo/config/environment.rb:5:in `<top (required)>'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
Possible?
There are several ways to do this.
If you're in irb, or the debugger something like:
caller.reverse
Will give you what you want.
The alternative then is to wrap all your code like so
begin
all the code
rescue StandardError => e
puts e.backtrace.reverse
end
And finally you could extend backtrace on Exception to print caller.reverse but extending core modules is not a great idea at all.
I ran a bundle install and since have not been able to run rails s successfully within terminal. I am new to rails and have tried to find help on this but nobody can explain it to me in the 101 way. What is going wrong - it looks like this is a NameError?
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:230:in `block in constantize': uninitialized constant Use (NameError)
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:in `constantize'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise.rb:267:in `get'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/mapping.rb:77:in `to'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/mapping.rb:72:in `modules'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/mapping.rb:89:in `routes'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/mapping.rb:156:in `default_used_route'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/mapping.rb:66:in `initialize'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise.rb:301:in `new'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise.rb:301:in `add_mapping'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/rails/routes.rb:208:in `block in devise_for'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/rails/routes.rb:207:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/lib/devise/rails/routes.rb:207:in `devise_for'
from /Users/cfictum/Documents/rails_projects/omrails/config/routes.rb:3:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:260:in `draw'
from /Users/cfictum/Documents/rails_projects/omrails/config/routes.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `call'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/file_update_checker.rb:78:in `execute'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:27:in `updater'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/cfictum/Documents/rails_projects/omrails/config/environment.rb:5:in `<top (required)>'
from /Users/cfictum/Documents/rails_projects/omrails/config.ru:4:in `block in <main>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/cfictum/Documents/rails_projects/omrails/config.ru:1:in `new'
from /Users/cfictum/Documents/rails_projects/omrails/config.ru:1:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I think that you have typed Use instead of use, perhaps in config/routes.rb
Case is important, if it starts with a capital letter then it is a constant, rather than a function.