<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Friends of angsuman</title><link>http://disqus.com/by/angsuman/</link><description></description><atom:link href="http://disqus.com/angsuman/friends.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 14 Nov 2013 10:08:27 -0000</lastBuildDate><item><title>Re: The Durable Document Store You Didn&amp;#8217;t Know You Had, But Did</title><link>(u'http://robots.thoughtbot.com/post/13829210385',%20380394326L)#comment-380394326</link><description>&lt;p&gt;Wow great, it would be simpler to add many columns for details of a product  (Like color, size, etc) in a shopping cart app, no need to use MongoDB or CouchDB&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 06 Dec 2011 11:51:56 -0000</pubDate></item><item><title>Re: Tidy views and beyond with Decorators</title><link>(u'http://robots.thoughtbot.com/post/13641910701',%20380463936L)#comment-380463936</link><description>&lt;p&gt;I have tried some plugins to clean my views, I have used draper &lt;a href="https://github.com/jcasimir/draper" rel="nofollow noopener" target="_blank" title="https://github.com/jcasimir/draper"&gt;https://github.com/jcasimir...&lt;/a&gt; and cells &lt;a href="https://github.com/apotonick/cells" rel="nofollow noopener" target="_blank" title="https://github.com/apotonick/cells"&gt;https://github.com/apotonic...&lt;/a&gt; but did not like much the way it's implemented, draper is cool but does not work fine for some cases like a Dashboard, I really liked ryan bates approach &lt;a href="https://github.com/ryanb/railscasts-episodes/tree/master/episode-287" rel="nofollow noopener" target="_blank" title="https://github.com/ryanb/railscasts-episodes/tree/master/episode-287"&gt;https://github.com/ryanb/ra...&lt;/a&gt;.&lt;br&gt;Great post Harold.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 06 Dec 2011 13:27:26 -0000</pubDate></item><item><title>Re: “Backbone.js and Rails (Part 1 of 2)”</title><link>(u'http://blog.leshill.org/blog/2012/09/04/backbone-js-and-rails.html',%20651435463L)#comment-651435463</link><description>&lt;p&gt;One thing that I have found recently is two way data binding for Backbone there are two projects that I found interesting (&lt;a href="http://rivetsjs.com/" rel="nofollow noopener" target="_blank" title="http://rivetsjs.com/"&gt;http://rivetsjs.com/&lt;/a&gt;, &lt;a href="https://github.com/kmalakoff/knockback" rel="nofollow noopener" target="_blank" title="https://github.com/kmalakoff/knockback"&gt;https://github.com/kmalakof...&lt;/a&gt; ) but I favor rivetsjs for it's simplicity I have posted a simple example here &lt;a href="http://boriscy.github.com/backbone-rivetsjs/" rel="nofollow noopener" target="_blank" title="http://boriscy.github.com/backbone-rivetsjs/"&gt;http://boriscy.github.com/b...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Sat, 15 Sep 2012 10:24:45 -0000</pubDate></item><item><title>Re: How to decrease coupling in your controllers &amp; views with decent_exposure for better maintainability</title><link>(u'http://blog.remarkablelabs.com/2013/01/how-to-decrease-coupling-in-your-controllers-views-with-decent_exposure-for-better-maintainability',%20766246245L)#comment-766246245</link><description>&lt;p&gt;This gem works great for CRUD, but what about having service objects or decorators or more complicated controllers could you show a more advanced example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Sun, 13 Jan 2013 13:24:11 -0000</pubDate></item><item><title>Re: Writing my first RubyGem - CanBe - Mark Starkman</title><link>(u'http://blog.markstarkman.com/blog/2013/01/09/writing-my-first-rubygem-canbe/',%20766262192L)#comment-766262192</link><description>&lt;p&gt;How can I perform complex queries that are using can be, wouln't be better to just create a one to one relation to other table that holds all the required attributes. Can be must work fine if you are using it on 1 or 2 attributes (fields) but I would like to know how it performs in situations where you have many attributes like 5 or more.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Sun, 13 Jan 2013 13:39:13 -0000</pubDate></item><item><title>Re: Writing my first RubyGem - CanBe - Mark Starkman</title><link>(u'http://blog.markstarkman.com/blog/2013/01/09/writing-my-first-rubygem-canbe/',%20767416439L)#comment-767416439</link><description>&lt;p&gt;This is a rought example:&lt;/p&gt;&lt;p&gt;class Account &amp;lt; ActiveRecord::Base&lt;br&gt;  # name, amount&lt;br&gt;  has_one :account_detail, include: :account_detail, autosave: true&lt;br&gt;  delegate :balance, :balance=, :total, :total=, to: :account_detail&lt;/p&gt;&lt;p&gt;  def initialize(attrs={})&lt;br&gt;    attrs_account_detail = {}&lt;br&gt;    [:balance, :total].each {|k| attrs_account_detail[k] = attrs.delete(k) }&lt;br&gt;    super&lt;br&gt;    build_account_detail(attrs_account_detail)&lt;br&gt;    self&lt;br&gt;  end&lt;br&gt;end&lt;/p&gt;&lt;p&gt;class AccountDetail &amp;lt; ActiveRecord::Base&lt;br&gt;  belongs_to :account&lt;br&gt;  #attr_accessible :balance, :total&lt;br&gt;end&lt;/p&gt;&lt;p&gt;Of course you must set config.active_record.whitelist_attributes = false, it's better to use strong parameters.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Mon, 14 Jan 2013 10:39:54 -0000</pubDate></item><item><title>Re: 
      Use Postgres Multiple Schema Database in Rails
    </title><link>(u'http://timnew.me/blog/2012/07/17/use-postgres-multiple-schema-database-in-rails/',%20807144977L)#comment-807144977</link><description>&lt;p&gt;I've been using schemas for an app and this is by far the best way I have seen to separate and make migrations more viable.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 21 Feb 2013 10:49:55 -0000</pubDate></item><item><title>Re: Decoding Rails Session Cookies — Andy Lindeman</title><link>(u'http://www.andylindeman.com/decoding-rails-session-cookies/',%20808954012L)#comment-808954012</link><description>&lt;p&gt;You can encrypt cookies for rails 3 with &lt;a href="https://github.com/hmcfletch/encrypted-cookie-store" rel="nofollow noopener" target="_blank" title="https://github.com/hmcfletch/encrypted-cookie-store"&gt;https://github.com/hmcfletc...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Fri, 22 Feb 2013 18:38:13 -0000</pubDate></item><item><title>Re: Inspecting Rails 4 using Ruby 2.0 - Matt Aimonetti</title><link>(u'http://matt.aimonetti.net/posts/2013/03/05/inspecting-rails-4-request-dispatch-using-ruby-2-dot-0/',%20822131898L)#comment-822131898</link><description>&lt;p&gt;Can you show or point at an example in Ruby&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 07 Mar 2013 13:08:01 -0000</pubDate></item><item><title>Re: Zero deploy &amp;#8211; speed up your deployment</title><link>(u'https://railsware.com/blog/2013/04/01/zero-deploy-speed-up-your-deployment/',%20848759413L)#comment-848759413</link><description>&lt;p&gt;Wow great it should work only today&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Mon, 01 Apr 2013 15:20:19 -0000</pubDate></item><item><title>Re: Rails' Insecure Defaults - Code Climate Blog</title><link>(u'http://blog.codeclimate.com/blog/2013/03/27/rails-insecure-defaults/',%20856389822L)#comment-856389822</link><description>&lt;p&gt;Great post&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Mon, 08 Apr 2013 10:08:19 -0000</pubDate></item><item><title>Re: The Problem with Rails Callbacks - Samuel Mullen</title><link>(u'http://samuelmullen.com/2013/05/the-problem-with-rails-callbacks/',%20888604818L)#comment-888604818</link><description>&lt;p&gt;why not just&lt;/p&gt;&lt;p&gt;class OrderCompletion &amp;lt; &lt;a href="http://Struct.new" rel="nofollow noopener" target="_blank" title="Struct.new"&gt;Struct.new&lt;/a&gt;(:order)&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;class OrderCompletion&lt;br&gt;  # Delegates methods to order&lt;br&gt;  delegate :method1, , :method2, to: :order&lt;/p&gt;&lt;p&gt;  def initialize(ord_id)&lt;br&gt;    @order_id = ord_id&lt;br&gt;  end&lt;/p&gt;&lt;p&gt;  def order&lt;br&gt;   @order =|| Order.find(@order_id)&lt;br&gt;  end&lt;/p&gt;&lt;p&gt;....&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 07 May 2013 19:26:15 -0000</pubDate></item><item><title>Re: Tagging With ActiveRecord and Postgres - Monkey and Crow</title><link>(u'http://monkeyandcrow.com/blog/tagging_with_active_record_and_postgres/',%20890843905L)#comment-890843905</link><description>&lt;p&gt;This is great!, I would like to store all tags in a table tags, so all tags can be presented for adding to a model, but How can I change the tag 'spiny' to 'SPINY' and update this in all models?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 09 May 2013 09:17:23 -0000</pubDate></item><item><title>Re: Tagging With ActiveRecord and Postgres - Monkey and Crow</title><link>(u'http://monkeyandcrow.com/blog/tagging_with_active_record_and_postgres/',%20891098724L)#comment-891098724</link><description>&lt;p&gt;The suggestion to save all the ids is great, it would not be difficult to change the UI if you had a many to many relationship and allows to migrate to arrays witth ids.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 09 May 2013 14:23:03 -0000</pubDate></item><item><title>Re: User Registration using Form Objects in Rails - Panther Software</title><link>(u'http://panthersoftware.com/blog/2013/05/13/user-registration-using-form-objects-in-rails/',%20897078676L)#comment-897078676</link><description>&lt;p&gt;Yeah that is the way to go, I would change the&lt;/p&gt;&lt;p&gt;def unique_username&lt;br&gt;  if User.where(:username =&amp;gt; username).any?&lt;br&gt;   errors.add(:username, 'has already been taken')&lt;br&gt;  end&lt;br&gt;  end&lt;/p&gt;&lt;p&gt;and also why not use SecureRandom.urlsafe_base64(len) instead of your random_string method&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 14 May 2013 10:08:08 -0000</pubDate></item><item><title>Re: User Registration using Form Objects in Rails - Panther Software</title><link>(u'http://panthersoftware.com/blog/2013/05/13/user-registration-using-form-objects-in-rails/',%20897301617L)#comment-897301617</link><description>&lt;p&gt;Wow I did not know about Reform, great gem&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 14 May 2013 14:03:04 -0000</pubDate></item><item><title>Re: Devise &amp;#8211; a fully featured authentication mechanism for Rails Applications</title><link>(u'http://blogs.clogeny.com/devise-on-rails/',%20941498309L)#comment-941498309</link><description>&lt;p&gt;Devise is great and has many plugins that add functionality but I prefer to spend time on authentication because it's a central part of your app especially if your app is not small. I have used devise and my client asked me for a feature that devise did not have and there weren't any plugins to accomplish the task, you get in trouble and end up with a solution that might not be elegant and it's harder to implement.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 25 Jun 2013 09:52:06 -0000</pubDate></item><item><title>Re: Thorax is Awesome - console.blog( this.thought )</title><link>(u'http://blog.peterdecroos.com/blog/2013/07/05/thorax-is-awesome/',%20959813613L)#comment-959813613</link><description>&lt;p&gt;You wrote&lt;/p&gt;&lt;p&gt;In the Rails world, the architectural philosphy revolves around the concept of skinny model/fat controller&lt;/p&gt;&lt;p&gt;it should be&lt;/p&gt;&lt;p&gt;In the Rails world, the architectural philosphy revolves around the concept of skinny controller, fat model&lt;/p&gt;&lt;p&gt;Fat model is more accepted but it's also bad :)&lt;/p&gt;&lt;p&gt;Great article!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Fri, 12 Jul 2013 10:05:25 -0000</pubDate></item><item><title>Re: A couple of useful extensions to Ruby's Enumerable module - (think)</title><link>(u'http://bbatsov.github.com/articles/2013/09/03/a-couple-of-useful-extensions-to-rubys-enumerable-module/',%201029494589L)#comment-1029494589</link><description>&lt;p&gt;Nice implementations simple and straight&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Wed, 04 Sep 2013 09:09:05 -0000</pubDate></item><item><title>Re: &amp;ldquo;Flor de Monta&amp;ntilde;a&amp;rdquo;: innovaci&amp;oacute;n pedag&amp;oacute;gica en Samaipata</title><link>(u'http://eju.tv/2013/06/flor-de-montaa-innovacin-pedaggica-en-samaipata/',%201037345948L)#comment-1037345948</link><description>&lt;p&gt;Muy linda escuela, espero poder ver mas en un futuro sobre esta escuela, encontre este video en youtube &lt;a href="http://www.youtube.com/watch?v=EJXF5j-ow-I" rel="nofollow noopener" target="_blank" title="http://www.youtube.com/watch?v=EJXF5j-ow-I"&gt;http://www.youtube.com/watc...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Tue, 10 Sep 2013 13:39:00 -0000</pubDate></item><item><title>Re: Returning Hierarchical Data in a Single SQL Query</title><link>(u'http://bender.io/2013/09/22/returning-hierarchical-data-in-a-single-sql-query-1/',%201058547895L)#comment-1058547895</link><description>&lt;p&gt;Great article I use a lot tree structures and using this would help a lot, I didn't know that you could create columns like **employee id**.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Wed, 25 Sep 2013 09:58:39 -0000</pubDate></item><item><title>Re: Multi tenancy with Devise and ActiveRecord's default scope • has_many :codes</title><link>(u'https://vitobotta.com/2013/10/17/devise-and-default-scope/',%201086977475L)#comment-1086977475</link><description>&lt;p&gt;I think the Account model requires a catt_accesor :account_id to make this work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Fri, 18 Oct 2013 08:41:35 -0000</pubDate></item><item><title>Re: solnic.eu</title><link>(u'https://solnic.codes/2013/10/16/virtus-1-0-0-released/',%201086981961L)#comment-1086981961</link><description>&lt;p&gt;Great I love Virtus I generally use it for Form objects&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Fri, 18 Oct 2013 08:47:07 -0000</pubDate></item><item><title>Re: 
              How Bootstrappers Can Compete Against Funded Startups And Get Customers
            </title><link>(u'https://lessaccounting.com/blog/compete-with-funded-companies/',%201122878263L)#comment-1122878263</link><description>&lt;p&gt;Great post, I'm still fighting alone with my entrepreneur &lt;a href="http://bonsaierp.com/" rel="nofollow noopener" target="_blank" title="http://bonsaierp.com/"&gt;http://bonsaierp.com/&lt;/a&gt; I have been doing for 3 years now (not full time I have to feed my children) but as much as I can. Thanks for your inspiration :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 14 Nov 2013 10:02:46 -0000</pubDate></item><item><title>Re: solnic.eu</title><link>(u'https://solnic.codes/2013/10/16/virtus-1-0-0-released/',%201122885109L)#comment-1122885109</link><description>&lt;p&gt;class BaseForm&lt;br&gt;  include Virtus&lt;br&gt;  extend ActiveModel::Naming&lt;br&gt;  include ActiveModel::Conversion&lt;br&gt;  include ActiveModel::Validations&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">boriscy</dc:creator><pubDate>Thu, 14 Nov 2013 10:08:27 -0000</pubDate></item></channel></rss>