search for: new_comment

Displaying 6 results from an estimated 6 matches for "new_comment".

2006 Apr 11
6
Reduce Number of Queries When Using ActiveRecord
I have a controller method called update_all that grabs parameters for about 30 form fields and saves them to the database. My current code looks to see if there is a string in params[] for each form field (two fields for each SelfEvaluationItem) and saves the updated self_evaluation_answer if a string is available. Since this is iterated code, I am almost certain that this generates 30 or so
2007 Sep 23
9
Code reviews: my dumb use of acts_as_commentable (newbie)
...; <% form_for :review, :url=> { :action => "save_comment" } do |f| %> <legend>Add Your Own Comment</legend> <%= f.hidden_field :review_id %> <p> <label for="title">Title</label> <%= f.text_field :new_comment_title, :size => 40 %> </p> <p> <label for="comment">Body</label> <%= f.text_field :new_comment_body, :size => 200 %> </p> <%= submit_tag "Save Comment", :class => "submit" %>...
2006 Sep 07
6
form_for - Child object - how to set parent id
Hi All, I am just trying to learn ruby/rails so please don''t flame me if this is a stupid question. As a learning project I decided to create my own blog using ROR. I have created a controller that shows paged blog entries, and below each blog is a list of comments along with a form alowing the user to add a new comment. To create the form for the comment entry I used form_for
2009 Aug 16
5
any help with captcha in my comments ?
this is my error: Processing ApplicationController#create (for 127.0.0.1 at 2009-08-17 00:57:56) [POST] Parameters: {"comment"=>{"name"=>"asdasd", "body"=>"asdasd"}, "commit"=>"Add Comment", "post_id"=>"19",
2007 May 31
4
Sample Merb App
I put together a sample app to help people learn Merb: http://svn.depixelate.com/applications/invoice_tracker/ I also blogged about it here: http://depixelate.com/2007/5/31/taking-merb-for-a-spin -- Zack Chandler http://depixelate.com
2010 Feb 16
0
Strange routing(?) Issue
...rs"} comments GET / comments(.:format) {:action=>"index", :controller=>"comments"} POST / comments(.:format) {:action=>"create", :controller=>"comments"} new_comment GET /comments/ new(.:format) {:action=>"new", :controller=>"comments"} edit_comment GET /comments/:id/ edit(.:format) {:action=>"edit", :controller=>"comments"} comment GET / comments/:id(....