search for: my_super_model

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

2006 Jul 16
0
Captcha Fun
...: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'' else render :action => ''new'' end...