class UnstaticNodesController < ApplicationController def new @unstatic_node = UnstaticNode.new(:name => params[:name]) render :action => "form" end def create @unstatic_node = UnstaticNode.new(params[:unstatic_node]) if @unstatic_node.save redirect_to params[:origin] else render :action => "form" end end def edit @unstatic_node = UnstaticNode.find(params[:id]) render :action => "form" end def update @unstatic_node = UnstaticNode.find(params[:id]) if @unstatic_node.update_attributes(params[:unstatic_node]) redirect_to params[:origin] else render :action => "form" end end end