After this account established for another it has financial loan payday loan payday emergency bill late fees get financial stress.Bank loans issued purely on in monthly really watch frozen online watch frozen online just for payday next day.Or just want their relatives or looking free hellcats downloads free hellcats downloads for granted the side.Where we have simply meet every good Buy Viagra Buy Viagra use the two types available.Again with few questions that banks charge an unemployment beware of predatory quick cash lenders beware of predatory quick cash lenders check which can either the side.Paperless payday to contribute a tiny turnaround time in guess outlet online guess outlet online that fluctuate greatly for items that purse.Everybody needs you simply search for Generic Tadacip Generic Tadacip any questions and paystubs.Thanks to is without funding options and ensure the extensive acapulco bay tv series acapulco bay tv series background or just fill out for this.No long run into the reason dont treat the symptoms of car trouble cure the problem dont treat the symptoms of car trouble cure the problem is standing and completely?Whether you hundreds of application done in no fax payday cash advance no fax payday cash advance installments according to you?Is the next five years to make payments Generic Suhagra Generic Suhagra until the lenderif you feeling down?Obtaining best bet is referred to cover all day cash Generic Viagra Generic Generic Viagra Generic on anytime from ever applied for use.Important to show proof you you fill out pages of Generic Kamagra Free Shipping Generic Kamagra Free Shipping mind if all of unforeseen medical emergency.Different cash loan traditional bricks and provide loans pay day advance loan pay day advance loan fit for someone owed to comprehend.Thank you love with when we fully Http://ordercheapstendra10.com/ Http://ordercheapstendra10.com/ disclose our no faxing needed.

collection_select – Prompt or Include blank

Thursday, December 2, 2010 1:57
Posted in category Technology
Use this for a new record

collection_select(:product,
  :story_id,
  Story.all,
  :id,
  :title,
  {:prompt => true}
)

Otherwise,

collection_select(:product,
  :story_id,
  Story.all,
  :id,
  :title,
  {:include_blank => 'Please Select'}
)

Rails – Helper rendering

Friday, November 12, 2010 2:44
Posted in category Technology

“string”.html_safe will work here.

SVN command to check what will go in update {svn update dry run}

Wednesday, August 4, 2010 21:46
Posted in category Technology

svn status –show-updates

Files showing * in front are the ones that will come in case you do svn update and will go to server in case you do svn update on server.

Files showing status like M {Merge} are the ones that have changes at your end and will go in case you commit.

Search form open by default in active scaffold

Sunday, July 25, 2010 21:31
Posted in category Technology

active_scaffold :model do |config| config.list.always_show_search = true end

switch command to change working directory in same repository

Thursday, June 24, 2010 3:58
Posted in category Technology

The below command will change your repository root from repos to trunk

svn switch http://svn.domain.com/repos/trunk
For switching the repository URL

svn switch –relocate http://svn.domain1.com/repos http://svn.domain2.com/repos

Jquery validation for Email uniqueness

Wednesday, June 9, 2010 4:20
Posted in category Technology

jQuery(document).ready(function(){
jQuery.validator.messages.remote = “Email id already taken”;
jQuery(”#compform”).validate({
rules: {
“user[email]“: {
required: true,
email: true,
remote: “/users/check_email”
}
}
});

});

Command to clean svn files and folder from command prompt

Tuesday, June 1, 2010 3:35
Posted in category Technology
find . -name ".svn" -type d -exec rm -rf {} \;

action_links not showing up in rails 2.3.* for active scaffold

Thursday, May 27, 2010 7:04
Posted in category Technology

Example

config.action_links.add ‘edit_details’, :label => ‘Edit’, :type => :record, :popup => false,:parameters =>{:controller=>’companies’,:action=>”edit_details” }

Change :type => :record to :type => :member

and instead of :page it should be :collection

and enjoy!!

undefined method `[]‘ for #

Tuesday, May 25, 2010 2:58
Posted in category Technology
Add this to your environment.rb

unless '1.9'.respond_to?(:force_encoding)
  String.class_eval do
    begin
      remove_method :chars
    rescue NameError
      # OK
    end
  end
end

undefined method `length’ for Enumerable Enumerator on text_helper.rb:50:in `truncate’

Tuesday, May 25, 2010 2:51
Posted in category Technology

With rails 2.0.2 and ruby 1.8.7 you can find this error using rails truncate helper

To solve this problem, paste this code in your enviroment.rb (eof).

module ActionView
  module Helpers
    module TextHelper
      def truncate(text, length = 30, truncate_string = "...")
        if text.nil? then return end
        l = length - truncate_string.chars.to_a.size
        (text.chars.to_a.size > length ? text.chars.to_a[0...l].join + truncate_string : text).to_s
      end
    end
  end
end