search for: public_posts

Displaying 1 result from an estimated 1 matches for "public_posts".

2006 Jul 16
0
Captcha Fun
...gnored. The following shows my controller file: class PublicController < ApplicationController include ActionView::Helpers::TextHelper verify :method => :post, :only => [ :destroy, :create, :update ], :redirect_to => { :action => :index } def index @posts = Post.public_posts end def save @supermodel = MySuperModel.find(params[:id]) @supermodel.attributes = params[:my_super_model] @supermodel.save end def create @post = Post.new(params[:post]) if @post.save flash[:notice] = ''Post was successfully created.''...