Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # GET /posts
- # GET /posts.xml
- def index
- @posts = Post.find(:all)
- #flash[:notice] = 'Post was found.' + @post
- raise @post.inspect.to_s
- respond_to do |format|
- format.html # index.html.erb
- format.xml { render :xml => @posts }
- end
- end
Add Comment
Please, Sign In to add comment