rake routes antaa seuraavan:
users GET /users(.:format)
{:controller=>"users", :action=>"index"}
POST /users(.:format)
{:controller=>"users", :action=>"create"}
new_user GET /users/new(.:format)
{:controller=>"users", :action=>"new"}
edit_user GET /users/:id/edit(.:format)
{:controller=>"users", :action=>"edit"}
user GET /users/:id(.:format)
{:controller=>"users", :action=>"show"}
PUT /users/:id(.:format)
{:controller=>"users", :action=>"update"}
DELETE /users/:id(.:format)
{:controller=>"users", :action=>"destroy"}
root /
{:action=>"index", :controller=>"home"}
destroy_marked_users PUT /users/destroy_marked(.:format)
{:controller=>"users", :action=>"destroy_marked"}
GET /users(.:format)
{:controller=>"users", :action=>"index"}
POST /users(.:format)
{:controller=>"users", :action=>"create"}
GET /users/new(.:format)
{:controller=>"users", :action=>"new"}
GET /users/:id/edit(.:format)
{:controller=>"users", :action=>"edit"}
GET /users/:id(.:format)
{:controller=>"users", :action=>"show"}
PUT /users/:id(.:format)
{:controller=>"users", :action=>"update"}
DELETE /users/:id(.:format)
{:controller=>"users", :action=>"destroy"}
user_links GET /users/:user_id/links(.:format)
{:controller=>"links", :action=>"index"}
POST /users/:user_id/links(.:format)
{:controller=>"links", :action=>"create"}
new_user_link GET /users/:user_id/links/new(.:format)
{:controller=>"links", :action=>"new"}
edit_user_link GET /users/:user_id/links/:id/edit(.:format)
{:controller=>"links", :action=>"edit"}
user_link GET /users/:user_id/links/:id(.:format)
{:controller=>"links", :action=>"show"}
PUT /users/:user_id/links/:id(.:format)
{:controller=>"links", :action=>"update"}
DELETE /users/:user_id/links/:id(.:format)
{:controller=>"links", :action=>"destroy"}
On 16 huhti, 13:32, marika <
marika.aho...@gmail.com> wrote:
> Ja vaikka kokeilisin laittaa update-actioniin '...@user.destroy_all(:id