Displaying 1 result from an estimated 1 matches for "ideatrains".
Did you mean:
ideatrain
2006 Jun 20
0
No opening form tag in rendered HTML
...ow'', :id => @post
else
render :action => ''edit''
end
end
def destroy
Post.find(params[:id]).destroy
redirect_to :action => ''list''
end
#def to control submitting ideatrain
def ideatrain
Post.find(params[:id]).ideatrains.create(params[:ideatrain])
flash[:notice] = "Added your comment."
redirect_to :action => "show", :id => params[:id]
end
end
#show.rhtml
<%= render :partial=>"form", :object => @ideatrain %>
<%= link_to ''Edit'', :action...