Closed pzuraq closed 11 years ago
Please post your config/routes.rb
.
Sure thing:
Swoppit::Application.routes.draw do
namespace :api do
resources :cycles, only: [:index, :show]
resources :offers, only: [:index, :show]
resources :swopp_groups, only: [:index, :show]
resources :swoppable_images, only: [:index, :show]
resources :swoppables, only: [:index, :show]
resources :users, only: [:index, :show]
end
devise_for :users, controllers: {sessions: 'sessions'}
root to: 'home#index'
get '*ember' => 'home#index'
end
Well routes.rb
seems to be in order. Try restarting your server and spork
(or guard
, if you are following the tutorial), and see if it resolves. This had tripped me in my early days in rails, where any changes to routes.rb
requires a server / spork restart.
Ah, that was it! Didn't realize I needed to restart Guard, I'm new to TDD in general. Thanks!
Glad it helped
Hey, following the tutorial and it really is excellent, learning a bunch. I got to the ember wildcard route in Rails, and it doesn't appear to be working. The test fails with the following error:
And when I load a random route into the app, I get the following error:
Any thoughts on what could be causing this? Or is this expected behavior?