15-09-2010, 06:38 PM
(Modification du message : 15-09-2010, 07:07 PM par Sephi-Chan.)
Oui, pour le nom du modèle, je me suis aussi dit que ça allait foutre la merde, mais j'avais aucune inspiration... Bref, si tu as un nom alternatif à me proposer
Sinon, au niveau de mon routes.rb, ça donne ça :
Et voici le résultat de rake routes :
Merci de te pencher sur mon problème, bye
Sinon, au niveau de mon routes.rb, ça donne ça :
root :to => "pages#home"
match '/signup', :to => 'users#new'
match '/signin', :to => 'sessions#new'
match '/signout', :to => 'sessions#destroy'
resources essions
resources :users
resources :news
resources :comments
Et voici le résultat de rake routes :
comments_new GET /comments/new(.:format) {:controller=>"comments", :action=>"new"}
sessions_new GET /sessions/new(.:format) {:controller=>"sessions", :action=>"new"}
root /(.:format) {:controller=>"pages", :action=>"home"}
signup /signup(.:format) {:controller=>"users", :action=>"new"}
signin /signin(.:format) {:controller=>"sessions", :action=>"new"}
signout /signout(.:format) {:controller=>"sessions", :action=>"destroy"}
sessions GET /sessions(.:format) {:action=>"index", :controller=>"sessions"}
sessions POST /sessions(.:format) {:action=>"create", :controller=>"sessions"}
new_session GET /sessions/new(.:format) {:action=>"new", :controller=>"sessions"}
edit_session GET /sessions/:id/edit(.:format) {:action=>"edit", :controller=>"sessions"}
session GET /sessions/:id(.:format) {:action=>"show", :controller=>"sessions"}
session PUT /sessions/:id(.:format) {:action=>"update", :controller=>"sessions"}
news GET /news/:id(.:format) {:action=>"show", :controller=>"news"}
news PUT /news/:id(.:format) {:action=>"update", :controller=>"news"}
news DELETE /news/:id(.:format) {:action=>"destroy", :controller=>"news"}
comments GET /comments(.:format) {:action=>"index", :controller=>"comments"}
comments POST /comments(.:format) {:action=>"create", :controller=>"comments"}
new_comment GET /comments/new(.:format) {:action=>"new", :controller=>"comments"}
edit_comment GET /comments/:id/edit(.:format) {:action=>"edit", :controller=>"comments"}
comment GET /comments/:id(.:format) {:action=>"show", :controller=>"comments"}
comment PUT /comments/:id(.:format) {:action=>"update", :controller=>"comments"}
comment DELETE /comments/:id(.:format) {:action=>"destroy", :controller=>"comments"}
Merci de te pencher sur mon problème, bye
Concept sympa pour des allopass gratuits très rapidement (sans inscription) : Click4Pass.