Displaying 1 result from an estimated 1 matches for "mysupermodel".
Did you mean:
my_super_model
2006 Jul 16
0
Captcha Fun
...lass 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.''
redirect_to :action => ''index'...