tag:blogger.com,1999:blog-2911377234335400421.post5766494438172492571..comments2023-12-26T12:52:50.667-06:00Comments on Rails on Edge: Intro to the Rails Consolerledge21http://www.blogger.com/profile/07280624261775331061noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2911377234335400421.post-77987408321421447732014-04-15T11:37:31.504-05:002014-04-15T11:37:31.504-05:00Anyway, I am adding this RSS to my email and could...Anyway, I am adding this RSS to my email and could look out for much more of your respective interesting content. Make sure you update this again soon.EZ Flash IVhttp://zercath.ecrater.comnoreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-66496940289598396032012-11-01T03:38:26.735-05:002012-11-01T03:38:26.735-05:00thanks for sharing knowledge
Jajak Allah
Regards...thanks for sharing knowledge<br /><br />Jajak Allah<br /><br />Regards<br />Fahim Babar Patelfahimhttps://www.blogger.com/profile/06879954492385882091noreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-40229106032654433752012-11-01T03:22:28.902-05:002012-11-01T03:22:28.902-05:00thanks for sharing knowledge
Jajak Allah
Regards...thanks for sharing knowledge<br /><br />Jajak Allah<br /><br />Regards<br />Fahim Babar Patelfahimhttps://www.blogger.com/profile/06879954492385882091noreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-40342667679748580822012-05-14T14:51:58.799-05:002012-05-14T14:51:58.799-05:00How do I set the session_user object without actua...How do I set the session_user object without actually logging in from the console in production itself? Any ideas.. I have tried the Marshal.load approach, doesn't work for me.. I was unable to find any 'tmp/sessions/ruby_sess.8eb9614a7e4e1e3b' file..Nehahttp://www.randomphilosophyideas.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-28388693096324287092009-12-22T04:12:02.135-06:002009-12-22T04:12:02.135-06:00some more tips on rails Console is here-->> ...some more tips on rails Console is here-->> http://madhukaudantha.blogspot.com/2009/12/ruby-on-rails-part-3-console-tips.htmlMadhukahttps://www.blogger.com/profile/00905046016224726592noreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-30808512537839963022009-10-28T02:39:59.363-05:002009-10-28T02:39:59.363-05:00Pretty nice. Can anyone tell me how to put some da...Pretty nice. Can anyone tell me how to put some data into database through console?<br /><br />Thanks,<br />Karthik.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2911377234335400421.post-29562759637671698382008-05-02T03:03:00.000-05:002008-05-02T03:03:00.000-05:00I'm pretty fond of using loops to write one off da...I'm pretty fond of using loops to write one off data set changes<BR/><B>example:</B><BR/>Topic.find(:all).each{|t|t.destroy} <I>#destroy all topics</I><BR/><BR/>or if I want to pick up some quick statistics<BR/><B>example:</B><BR/>Topic.find(:all).select{|t|t.subject.downcase.scan(/rails/).length > 0}.length <I>#how many topics have rails in the subject line</I><BR/><BR/>or do other slightly fancier collection / manipulation<BR/><B>example:</B><BR/>y Topic.find(:all).inject(Hash.new(0)){|return,t|return[t.user.login]+=1; return} <I>#Create and display a hash table that returns login=>post_count eg: stocad=>23</I>stocadhttps://www.blogger.com/profile/16725141369991564703noreply@blogger.com