Created
July 18, 2012 00:29
-
-
Save keppy/3133180 to your computer and use it in GitHub Desktop.
Problem with routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
routes.rb | |
---------- | |
Debateable::Application.routes.draw do | |
resources :users do | |
resources :posts | |
end | |
resources :topics do | |
resources :posts | |
end | |
end | |
---------- | |
bundle exec rake routes: | |
user_propositions GET /users/:user_id/posts(.:format) posts#index | |
POST /users/:user_id/posts(.:format) posts#create | |
----------- | |
The first line of my form in views/posts/new.html.erb: | |
<%= form_for (@post) do |f| %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment