search for: posted_at

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

2006 Mar 17
1
RSS problem when trying to display ID - HELP
...t; ] comment by " + comment.name.capitalize) xml.description(comment.entry) # rfc822 xml.pubDate(comment.created_at.strftime("%a, %d %b %Y %H:%M:%S %z")) xml.link("http://simplebeta.com/inventory/" + content.posted_at.strftime("%Y") + "/" + content.posted_at.strftime("%m") + "/" + content.posted_at.strftime("%d") + "/" + content.permalink + "/#comments") end end end end } } Any thoughts/ideas why I...
2006 Mar 04
1
Saving current date/time upon comment submission - help!
I''m having trouble storing the date/time with my comments - I''m getting the MySQL error "posted_at is null". How do I setup my code to automatically store the current date/time in the ''posted_at'' column of my ''comments'' table? -- Posted via http://www.ruby-forum.com/.
2009 Jul 11
2
offeride :limit named_scope default_scope
Hi, Rails 2.3.2 class TestD < ActiveRecord::Base default_scope :limit => 12 named_scope :limit, lambda { |num| { :limit => num} } end ruby script/console >> TestD.all TestD Load (0.7ms) SELECT * FROM "test_ds" LIMIT 12 => [] >> TestD.limit(14) TestD Load (0.3ms) SELECT * FROM "test_ds" LIMIT 12 => [] Any ideas why the default limit
2006 Mar 04
0
HELP with redirect_to!
...ment, this is what I''m doing: #controller def comments content = Content.find(params[:id]) comment = Comment.new(params[:comment]) content.comments << comment content.save redirect_to ( :action => ''individual'', :year => content.posted_at.year, :month => content.posted_at.month, :day => content.posted_at.day, :permalink => content.permalink # line 61 ) end I''m getting a syntax error on line 61. How can I redirect back to the same page? I''ve tried "redirect_to action => :...
2006 Mar 04
2
Current date/time - how to store with comments?
Can someone tell me how to store the current date/time when someone posts a comment on my blog? I could even update the comments table after the comment is saved in the controller, but I''m not sure how to do that either. Thanks for any help... -- Posted via http://www.ruby-forum.com/.
2007 Mar 31
3
Sorting issues, can anyone help me?
...=> {:boost => 2}, :description => {}, :url => {}, :rank_sort => {:index => :untokenized_omit_norms, :term_vector => :no}, :posted_at_sort => {:index => :untokenized_omit_norms, :term_vector => :no} }, :remote => true belongs_to :blog def rank_sort begin return self.blog.rank_links.to_i rescue return nil end end def posted_at_sort begin return...