I’m learning Rails by Example (chapter 11), by Michael H. (
http://ruby.railstutorial.org/chapters/user-microposts#top) but I got no
route matches when I try to delete one micropost.
the _micropost html is…
the controller is…
class MicropostsController < ApplicationController
before_filter :authenticate, :only => [:create, :destroy]
before_filter :authorized_user, :only => :destroy
@micropost = current_user.microposts.build(params[:micropost])
flash[:success] = “Micropost created!”
@feed_items = 
@micropost = current_user.microposts.find(params[:id])
and finally, the route is…
resources :sessions, :only => [:new, :create, :destroy]
resources :microposts, :only => [:create, :destroy]
match ‘/signup’, :to => ‘users#new’
match ‘/signin’, :to => ‘sessions#new’
match ‘/signout’, :to => ‘sessions#destroy’
match ‘/contact’, :to => ‘pages#contact’
match ‘/about’, :to => ‘pages#about’
match ‘/help’, :to => ‘pages#help’
root :to => 'pages#home'
Please, let me know if you can help me.